-
beribumaaf yang terucap taksatupun kata terucap olehmu beribu maaf pintaku taksedetikpun kau pedulikan sang bulan menutup mata mata haripun ...
-
NetBIOS NetBIOS (singkatan dari istilah dalam bahasa Inggris: Network Basic Input/Output System) adalah sebuah spesifikasi yang dibuat ole...
-
▼
2008
(48)
-
▼
Desember
(46)
- Syair
- qoidarBswBaSuSyamarwasuLOVESyairpedrosaniki hayden...
- persahabatan
- Awesome MySpace Comments & Myspace Layouts
- Awesome MySpace Comments & Myspace Layouts
- MySpace Graphics & Free Myspace Layouts
- kucoba tepis semua rindukukucoba hapus semua khaya...
- Buat Website Part 1 by Padro Widjaja Www.RahasiaS...
- gure B-3 Structure of Example Pascal ProgramStruct...
- javascript:void(0)
- Contoh Penghitungan Gaji Ketentuan Soal :1. Nama D...
- Friendster Comment / Friendster Layout / Myspace C...
- Friendster Comment / Friendster Layout / Myspace C...
- Friendster Comment / Friendster Layout / Myspace C...
- Tanpa judul
- Tanpa judul
- Friendster Comments / Myspace Layouts / Friendster...
- Friendster Comments / Myspace Layouts / Friendster...
- wahay
- ketika smuanya akan berakhirharuskah aku berdiam d...
- cinta suci
- Tanpa judul
- Tanpa judul
- Tanpa judul
- Tanpa judul
- Tanpa judul
- mungkinkah kau tahurasa cinta yang kini membaradan...
- Download Youtube Video Clip Ungu - LagukuBusby Seo...
- Myspace German Graphics
- Orkut Graphics
- table, tr, td { background-color:transparent; bord...
- .contactTable a { width: auto!important; height: a...
- Tanpa judul
- table, tr, td { background-color:transparent; bord...
- Funny Picture Graphic Comments
- Funny Picture Graphic Comments
- Myspace Hello Comments
- Myspace Islam Comments & Graphics
- Menginstal Sistem OperasiLANGKAH 13 Proses instala...
- merakit komputer
- Lelah raga ini…Menapaki hari-hariMenggapai mimpiHi...
- sepi
- bunga
- maaf
- semua yang ada di hati hanya kamusemua yang ada di...
- puisi
-
▼
Desember
(46)
Lencana Facebook
Selamat Datang
Selamat Datang Di Blogqoidar, terimakasih telah mengunjungi blogsaya, bila ada kekurangan saya menerima keritik dari anda
Teimakasih
Teimakasih
Total Tayangan Halaman
link
harga
My site is worth$3,695.4Your website value?
home
Entri Populer
Blog Archive
Minggu, 28 Desember 2008
Sabtu, 27 Desember 2008
Kamis, 25 Desember 2008
kucoba tepis semua rinduku
kucoba hapus semua khayalku
berharap semua cepat berlalu
khayalku tu miliki dirimu
lupakanmu… jauh
tinggalkanmu dari hidupku
bangunkanku dari mimpiku
yakinkan semua ini hanya khayalku
jauh ……….
tinggalkan mu dari hidupku
bangunkanku dari mimpiku
yakinkan semua ini hanya khayalku
download mp3
Rabu, 24 Desember 2008
gure B-3 Structure of Example Pascal Program
Structure of Example Pascal Program
$uslinit$
$standard_level 'HP3000'; tables on; code_offsets on; xref on$
$global 'SPL'$
$PAGE$
program credit(input,output);
{ Date written: August, 1987.}
{ Date compiled: August, 1987.}
const
ACCEPT_CODE = '3';
DATA_COMPLETE = 1;
FULL_RECORD = 80;
LENGTH_REMOTE_TPNAME = 4;
NO_SW = false;
YES_SW = true;
ON = 2;
CONVSYNCLEVEL = 0;
SEND = 4;
SOC_SEC_ERROR_CD = 1;
SYSTEM_ERROR_CD = 3;
TRANSLATE_TO_ASCII = 1;
TRANSLATE_TO_EBCDIC = 2;
TRANSLENGTH = 30;
YES = ['y', 'Y'];
AllocateErrMsg = text ['Allocate Error '];
CTranslateErrMsg = text ['CTranslate Error '];
DeallocateErrMsg = text ['Deallocate Error '];
EndedErrMsg = text ['TP Ended Error '];
RcvAndWaitErrMsg = text ['RcvAndWait Error '];
SendDataErrMsg = text ['Send Data Error '];
StartedErrMsg = text ['TP Started Error '];
WhatReceivedErrMsg = text ['What Received Error '];
type
shortint = -32768..32767;
pac4type = packed array [1..4] of char;
nametype = packed array [1..10] of char;
errmsgtype = packed array [1..20] of char;
ssnumtype = packed array [1..9] of char;
balancetype = packed array [1..6] of char;
MasterDataType = record
case shortint of
0: (SocSecMaster : ssnumtype;
LastNameMaster : nametype;
FirstNameMaster : nametype;
MINameMaster : char;
CoCodeMaster1 : char;
BalanceMaster1 : balancetype;
CoCodeMaster2 : char;
BalanceMaster2 : balancetype;
CoCodeMaster3 : char;
BalanceMaster3 : balancetype;
CoCodeMaster4 : char;
BalanceMaster4 : balancetype;
CoCodeMaster5 : char;
BalanceMaster5 : balancetype;
Filler : packed array [1..14] of char;
RiskCodeMaster : char);
1: (ErrorCode : pac4type;
ErrorFiller : packed array [1..76] of char);
end;
short_text = packed array [1..8] of char;
text = packed array [1..20] of char;
TPNameType = packed array [1..LENGTH_REMOTE_TPNAME] of char;
TransDataType = record
SocSecTrans : ssnumtype;
LastNameTrans : nametype;
FirstNameTrans: nametype;
MINameTrans : char;
end;
hpe_status = record
case integer of
0 : (all : integer);
1 : (info : shortint;
subsys : shortint);
end;
var
LocalTPName,
SessionType : short_text;
RemoteTPNameASCII : TPNameType;
ResourceID,
TPID,
TraceOn,
ReceiveLength,
WhatReceived,
DeallocateType : shortint;
TransData : TransDataType;
Ready : char;
Quit_SW : boolean;
procedure TPStarted; intrinsic;
procedure TPEnded; intrinsic;
procedure MCAllocate; intrinsic;
procedure MCDeallocate; intrinsic;
procedure MCSendData; intrinsic;
procedure MCRcvAndWait; intrinsic;
procedure CTranslate; intrinsic;
function bin $alias 'binary'$ : shortint; intrinsic;
$PAGE$
{************************************************************
ErrorHandler
This procedure returns the error message associated
with a status info value.
************************************************************}
procedure ErrorHandler (IntrinsicMsg : text;
Status : shortint;
var Quit_SW : boolean);
begin
Quit_SW := YES_SW;
writeln (IntrinsicMsg, Status:3);
end;
$PAGE$
{************************************************************
GetFullScreenData
This procedure prompts the user for data and receives
the data from the terminal. ************************************************************}
procedure GetFullScreenData (var TransData : TransDataType);
begin
with TransData do
begin
SocSecTrans := ' ';
LastNameTrans := ' ';
FirstNameTrans := ' ';
MINameTrans := ' ';
writeln ('Credit Risk Check.');
writeln;
writeln ('Social Security Number:');
readln (SocSecTrans);
writeln ('Last Name:');
readln (LastNameTrans);
writeln ('First Name:');
readln (FirstNameTrans);
writeln ('Middle Initial:');
readln (MINameTrans);
end;
end;
$PAGE$
{************************************************************
BeginHouseKeeping
This procedure calls TPStarted to initialize resources
for the local TP, and then it calls MCAllocate to
allocate a conversation with the remote TP. ************************************************************}
procedure BeginHouseKeeping (LocalTPName : short_text;
RemoteTPNameASCII : TPNameType;
SessionType : short_text;
var TPID, ResourceID : shortint;
TraceOn : shortint;
var Quit_SW : boolean);
var
IntrinsicStatus : hpe_status;
RemoteTPNameEBCDIC : TPNameType;
begin
Quit_SW := NO_SW;
TPStarted (LocalTPName, TPID, IntrinsicStatus, TraceOn);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (StartedErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
CTranslate (TRANSLATE_TO_EBCDIC, RemoteTPNameASCII,
RemoteTPNameEBCDIC, LENGTH_REMOTE_TP_NAME);
if CCode = 1 then
begin
Quit_SW := YES_SW;
writeln (CTranslateErrMsg, 'CCL - Remote TP Name not translated.');
end
else
begin
MCAllocate (TPID, SessionType, RemoteTPNameEBCDIC,
LENGTH_REMOTE_TP_NAME, ResourceID, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (AllocateErrMsg, IntrinsicStatus.info, Quit_SW);
end;
end;
end;
$PAGE$
{************************************************************
SendData
This procedure translates the data received from the
user's screen into EBCDIC and sends it to the remote TP. ************************************************************}
procedure SendData (ResourceID : shortint;
TransData : TransDataType;
var Quit_SW : boolean);
var
IntrinsicStatus : hpe_status;
ReqToSendRec : shortint;
begin
CTranslate (TRANSLATE_TO_EBCDIC, TransData, TransData, TRANSLENGTH);
if CCode = 1 then
begin
Quit_SW := YES_SW;
writeln (CTranslateErrMsg, 'CCL - TransData not translated.');
end
else
begin
MCSendData (ResourceID, TransData, TRANSLENGTH,
ReqToSendRec, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (SendDataErrMsg, IntrinsicStatus.info, Quit_SW);
end;
end;
$PAGE$
{************************************************************
QuitScreen
This procedure asks the user if he or she is ready to
quit. If the user responds 'Y', this procedure changes
Quit_SW to YES_SW. ************************************************************}
procedure QuitScreen (var Quit_SW : boolean);
begin
writeln ('Ready to quit (Y/N)?');
readln (Ready);
if Ready in YES then
Quit_SW := YES_SW;
end;
$PAGE$
{************************************************************
DisplayAcceptance
This procedure evaluates the Risk Code received from the
remote TP to determine whether to approve or deny credit,
and then it writes a message to the user's terminal. ************************************************************}
procedure DisplayAcceptance (RiskCode : shortint;
var Quit_SW : boolean);
begin
if ord(RiskCode) << ord(ACCEPT_CODE) then
writeln ('Credit Denied.')
else
writeln ('Credit Approved.');
QuitScreen (Quit_SW);
end;
$PAGE$
{************************************************************
DisplayErrorMessage
This procedure evaluates the errorcode returned by the
remote TP and writes an error message to the user's
terminal. The remote TP can return any of 3 error codes:
001 - The SS# is not in the database.
002 - The SS# is in the database, but the name does
not match the name sent by the HP 3000.
003 - Miscellaneous system errors.
Error codes 001 and 002 cause this procedure to call
QuitScreen. Error code 003 causes this procedure to
set Quit_SW to YES_SW. ************************************************************}
procedure DisplayErrorMessage (ErrorCode : shortint;
var Quit_SW : boolean);
begin
if ErrorCode = SYSTEM_ERROR_CD then
begin
writeln (errorcode:4);
Quit_SW := YES_SW;
end
else
begin
if ErrorCode = SOCSEC_ERROR_CD then
writeln ('SS# not on file - Credit Denied.')
else
writeln ('Invalid Name');
QuitScreen (Quit_SW);
end;
end;
$PAGE$
{************************************************************
ReceiveData
This procedure calls MCRcvAndWait twice: once to
receive a data record from the remote TP and once to
receive the instruction to change to Send state. If
this procedure receives a complete data record, it
calls CTranslate to translate it to ASCII. ************************************************************}
procedure ReceiveData (ResourceID : shortint;
var Quit_SW : boolean);
var
IntrinsicStatus : hpe_status;
MasterData : MasterDataType;
ReqToSendRec : shortint;
begin
ReceiveLength := FULL_RECORD;
MCRcvAndWait (ResourceID, ReceiveLength, ReqToSendRec, MasterData,
WhatReceived, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (RcvAndWaitErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
if WhatReceived <<>> DATA_COMPLETE then
ErrorHandler (WhatReceivedErrMsg, WhatReceived, Quit_SW)
else
begin
MCRcvAndWait (ResourceID, ReceiveLength, ReqToSendRec,
MasterData, WhatReceived, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (RcvAndWaitErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
if WhatReceived <<>> SEND then
ErrorHandler (WhatReceivedErrMsg, WhatReceived,
Quit_SW)
else
begin
CTranslate (TRANSLATE_TO_ASCII, MasterData, MasterData,
ReceiveLength);
if CCode = 1 then
begin
Quit_SW := YES_SW;
writeln (CTranslateErrMsg,
'CCL - MasterData not translated.');
end;
if not Quit_SW then
begin
if ReceiveLength = FULL_RECORD then
DisplayAcceptance (MasterData.RiskCodeMaster,
Quit_SW)
else
DisplayErrorMessage (bin(MasterData.ErrorCode, 4),
Quit_SW);
end
end
end
end
end
end;
$PAGE$
{************************************************************
ProcessRecords
This procedure calls GetFullScreenData, SendData, and
ReceiveData.
************************************************************}
procedure ProcessRecords (ResourceID : shortint;
var Quit_SW : boolean);
begin
GetFullScreenData (TransData);
SendData (ResourceID, TransData, Quit_SW);
if not Quit_SW then
ReceiveData (ResourceID, Quit_SW);
end;
$PAGE$
{************************************************************
EndHousekeeping
This procedure deallocates the conversation and calls
TPEnded to free the resources used by the local TP.
************************************************************}
procedure EndHousekeeping (ResourceID, TPID : shortint);
var
IntrinsicStatus : hpe_status;
begin
MCDeallocate (ResourceID, DeallocateType, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (DeallocateErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
TPEnded (TPID, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (EndedErrMsg, IntrinsicStatus.info, Quit_SW)
end;
end;
$PAGE$
{************************************************************
Main Program
************************************************************}
begin
LocalTPName := 'USERTP ';
RemoteTPNameASCII := 'Z027';
Traceon := ON;
SessionType := 'APISESS ';
DeallocateType := CONVSYNCLEVEL;
BeginHousekeeping (LocalTPName, RemoteTPNameASCII, SessionType,
TPID, ResourceID, Traceon, Quit_SW);
While not Quit_SW do
ProcessRecords (ResourceID, Quit_SW);
EndHousekeeping (ResourceID, TPID, DeallocateType);
end.
Structure of Example Pascal Program
$uslinit$
$standard_level 'HP3000'; tables on; code_offsets on; xref on$
$global 'SPL'$
$PAGE$
program credit(input,output);
{ Date written: August, 1987.}
{ Date compiled: August, 1987.}
const
ACCEPT_CODE = '3';
DATA_COMPLETE = 1;
FULL_RECORD = 80;
LENGTH_REMOTE_TPNAME = 4;
NO_SW = false;
YES_SW = true;
ON = 2;
CONVSYNCLEVEL = 0;
SEND = 4;
SOC_SEC_ERROR_CD = 1;
SYSTEM_ERROR_CD = 3;
TRANSLATE_TO_ASCII = 1;
TRANSLATE_TO_EBCDIC = 2;
TRANSLENGTH = 30;
YES = ['y', 'Y'];
AllocateErrMsg = text ['Allocate Error '];
CTranslateErrMsg = text ['CTranslate Error '];
DeallocateErrMsg = text ['Deallocate Error '];
EndedErrMsg = text ['TP Ended Error '];
RcvAndWaitErrMsg = text ['RcvAndWait Error '];
SendDataErrMsg = text ['Send Data Error '];
StartedErrMsg = text ['TP Started Error '];
WhatReceivedErrMsg = text ['What Received Error '];
type
shortint = -32768..32767;
pac4type = packed array [1..4] of char;
nametype = packed array [1..10] of char;
errmsgtype = packed array [1..20] of char;
ssnumtype = packed array [1..9] of char;
balancetype = packed array [1..6] of char;
MasterDataType = record
case shortint of
0: (SocSecMaster : ssnumtype;
LastNameMaster : nametype;
FirstNameMaster : nametype;
MINameMaster : char;
CoCodeMaster1 : char;
BalanceMaster1 : balancetype;
CoCodeMaster2 : char;
BalanceMaster2 : balancetype;
CoCodeMaster3 : char;
BalanceMaster3 : balancetype;
CoCodeMaster4 : char;
BalanceMaster4 : balancetype;
CoCodeMaster5 : char;
BalanceMaster5 : balancetype;
Filler : packed array [1..14] of char;
RiskCodeMaster : char);
1: (ErrorCode : pac4type;
ErrorFiller : packed array [1..76] of char);
end;
short_text = packed array [1..8] of char;
text = packed array [1..20] of char;
TPNameType = packed array [1..LENGTH_REMOTE_TPNAME] of char;
TransDataType = record
SocSecTrans : ssnumtype;
LastNameTrans : nametype;
FirstNameTrans: nametype;
MINameTrans : char;
end;
hpe_status = record
case integer of
0 : (all : integer);
1 : (info : shortint;
subsys : shortint);
end;
var
LocalTPName,
SessionType : short_text;
RemoteTPNameASCII : TPNameType;
ResourceID,
TPID,
TraceOn,
ReceiveLength,
WhatReceived,
DeallocateType : shortint;
TransData : TransDataType;
Ready : char;
Quit_SW : boolean;
procedure TPStarted; intrinsic;
procedure TPEnded; intrinsic;
procedure MCAllocate; intrinsic;
procedure MCDeallocate; intrinsic;
procedure MCSendData; intrinsic;
procedure MCRcvAndWait; intrinsic;
procedure CTranslate; intrinsic;
function bin $alias 'binary'$ : shortint; intrinsic;
$PAGE$
{************************************************************
ErrorHandler
This procedure returns the error message associated
with a status info value.
************************************************************}
procedure ErrorHandler (IntrinsicMsg : text;
Status : shortint;
var Quit_SW : boolean);
begin
Quit_SW := YES_SW;
writeln (IntrinsicMsg, Status:3);
end;
$PAGE$
{************************************************************
GetFullScreenData
This procedure prompts the user for data and receives
the data from the terminal. ************************************************************}
procedure GetFullScreenData (var TransData : TransDataType);
begin
with TransData do
begin
SocSecTrans := ' ';
LastNameTrans := ' ';
FirstNameTrans := ' ';
MINameTrans := ' ';
writeln ('Credit Risk Check.');
writeln;
writeln ('Social Security Number:');
readln (SocSecTrans);
writeln ('Last Name:');
readln (LastNameTrans);
writeln ('First Name:');
readln (FirstNameTrans);
writeln ('Middle Initial:');
readln (MINameTrans);
end;
end;
$PAGE$
{************************************************************
BeginHouseKeeping
This procedure calls TPStarted to initialize resources
for the local TP, and then it calls MCAllocate to
allocate a conversation with the remote TP. ************************************************************}
procedure BeginHouseKeeping (LocalTPName : short_text;
RemoteTPNameASCII : TPNameType;
SessionType : short_text;
var TPID, ResourceID : shortint;
TraceOn : shortint;
var Quit_SW : boolean);
var
IntrinsicStatus : hpe_status;
RemoteTPNameEBCDIC : TPNameType;
begin
Quit_SW := NO_SW;
TPStarted (LocalTPName, TPID, IntrinsicStatus, TraceOn);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (StartedErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
CTranslate (TRANSLATE_TO_EBCDIC, RemoteTPNameASCII,
RemoteTPNameEBCDIC, LENGTH_REMOTE_TP_NAME);
if CCode = 1 then
begin
Quit_SW := YES_SW;
writeln (CTranslateErrMsg, 'CCL - Remote TP Name not translated.');
end
else
begin
MCAllocate (TPID, SessionType, RemoteTPNameEBCDIC,
LENGTH_REMOTE_TP_NAME, ResourceID, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (AllocateErrMsg, IntrinsicStatus.info, Quit_SW);
end;
end;
end;
$PAGE$
{************************************************************
SendData
This procedure translates the data received from the
user's screen into EBCDIC and sends it to the remote TP. ************************************************************}
procedure SendData (ResourceID : shortint;
TransData : TransDataType;
var Quit_SW : boolean);
var
IntrinsicStatus : hpe_status;
ReqToSendRec : shortint;
begin
CTranslate (TRANSLATE_TO_EBCDIC, TransData, TransData, TRANSLENGTH);
if CCode = 1 then
begin
Quit_SW := YES_SW;
writeln (CTranslateErrMsg, 'CCL - TransData not translated.');
end
else
begin
MCSendData (ResourceID, TransData, TRANSLENGTH,
ReqToSendRec, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (SendDataErrMsg, IntrinsicStatus.info, Quit_SW);
end;
end;
$PAGE$
{************************************************************
QuitScreen
This procedure asks the user if he or she is ready to
quit. If the user responds 'Y', this procedure changes
Quit_SW to YES_SW. ************************************************************}
procedure QuitScreen (var Quit_SW : boolean);
begin
writeln ('Ready to quit (Y/N)?');
readln (Ready);
if Ready in YES then
Quit_SW := YES_SW;
end;
$PAGE$
{************************************************************
DisplayAcceptance
This procedure evaluates the Risk Code received from the
remote TP to determine whether to approve or deny credit,
and then it writes a message to the user's terminal. ************************************************************}
procedure DisplayAcceptance (RiskCode : shortint;
var Quit_SW : boolean);
begin
if ord(RiskCode) << ord(ACCEPT_CODE) then
writeln ('Credit Denied.')
else
writeln ('Credit Approved.');
QuitScreen (Quit_SW);
end;
$PAGE$
{************************************************************
DisplayErrorMessage
This procedure evaluates the errorcode returned by the
remote TP and writes an error message to the user's
terminal. The remote TP can return any of 3 error codes:
001 - The SS# is not in the database.
002 - The SS# is in the database, but the name does
not match the name sent by the HP 3000.
003 - Miscellaneous system errors.
Error codes 001 and 002 cause this procedure to call
QuitScreen. Error code 003 causes this procedure to
set Quit_SW to YES_SW. ************************************************************}
procedure DisplayErrorMessage (ErrorCode : shortint;
var Quit_SW : boolean);
begin
if ErrorCode = SYSTEM_ERROR_CD then
begin
writeln (errorcode:4);
Quit_SW := YES_SW;
end
else
begin
if ErrorCode = SOCSEC_ERROR_CD then
writeln ('SS# not on file - Credit Denied.')
else
writeln ('Invalid Name');
QuitScreen (Quit_SW);
end;
end;
$PAGE$
{************************************************************
ReceiveData
This procedure calls MCRcvAndWait twice: once to
receive a data record from the remote TP and once to
receive the instruction to change to Send state. If
this procedure receives a complete data record, it
calls CTranslate to translate it to ASCII. ************************************************************}
procedure ReceiveData (ResourceID : shortint;
var Quit_SW : boolean);
var
IntrinsicStatus : hpe_status;
MasterData : MasterDataType;
ReqToSendRec : shortint;
begin
ReceiveLength := FULL_RECORD;
MCRcvAndWait (ResourceID, ReceiveLength, ReqToSendRec, MasterData,
WhatReceived, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (RcvAndWaitErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
if WhatReceived <<>> DATA_COMPLETE then
ErrorHandler (WhatReceivedErrMsg, WhatReceived, Quit_SW)
else
begin
MCRcvAndWait (ResourceID, ReceiveLength, ReqToSendRec,
MasterData, WhatReceived, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (RcvAndWaitErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
if WhatReceived <<>> SEND then
ErrorHandler (WhatReceivedErrMsg, WhatReceived,
Quit_SW)
else
begin
CTranslate (TRANSLATE_TO_ASCII, MasterData, MasterData,
ReceiveLength);
if CCode = 1 then
begin
Quit_SW := YES_SW;
writeln (CTranslateErrMsg,
'CCL - MasterData not translated.');
end;
if not Quit_SW then
begin
if ReceiveLength = FULL_RECORD then
DisplayAcceptance (MasterData.RiskCodeMaster,
Quit_SW)
else
DisplayErrorMessage (bin(MasterData.ErrorCode, 4),
Quit_SW);
end
end
end
end
end
end;
$PAGE$
{************************************************************
ProcessRecords
This procedure calls GetFullScreenData, SendData, and
ReceiveData.
************************************************************}
procedure ProcessRecords (ResourceID : shortint;
var Quit_SW : boolean);
begin
GetFullScreenData (TransData);
SendData (ResourceID, TransData, Quit_SW);
if not Quit_SW then
ReceiveData (ResourceID, Quit_SW);
end;
$PAGE$
{************************************************************
EndHousekeeping
This procedure deallocates the conversation and calls
TPEnded to free the resources used by the local TP.
************************************************************}
procedure EndHousekeeping (ResourceID, TPID : shortint);
var
IntrinsicStatus : hpe_status;
begin
MCDeallocate (ResourceID, DeallocateType, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (DeallocateErrMsg, IntrinsicStatus.info, Quit_SW)
else
begin
TPEnded (TPID, IntrinsicStatus);
if IntrinsicStatus.all <<>> 0 then
ErrorHandler (EndedErrMsg, IntrinsicStatus.info, Quit_SW)
end;
end;
$PAGE$
{************************************************************
Main Program
************************************************************}
begin
LocalTPName := 'USERTP ';
RemoteTPNameASCII := 'Z027';
Traceon := ON;
SessionType := 'APISESS ';
DeallocateType := CONVSYNCLEVEL;
BeginHousekeeping (LocalTPName, RemoteTPNameASCII, SessionType,
TPID, ResourceID, Traceon, Quit_SW);
While not Quit_SW do
ProcessRecords (ResourceID, Quit_SW);
EndHousekeeping (ResourceID, TPID, DeallocateType);
end.
Contoh Penghitungan Gaji
Ketentuan Soal :
1. Nama Di input
2. Jabatan di input ,
Jabatan Gaji Tunjangan
Direktur 3000000 10 % dari gaji
Manager 2000000 5% dari gaji
Karyawan 1000000 2% dari gaji
OB 800000 1% dari gaji
3. Dikenakan PPN 10 % dari gaji
4. Gaji Bersih didapat dari : gaji + tunjangan – PPn
Jawabannya:
Uses crt;
Var nama:string[20];jabatan:string;
Gaji:longint;
Tunj,ppn,gajibersih:real;
Begin
Clrscr;
Write(‘Nama Karyawan : ‘); readln(nama);
Write(‘Masukkan Jabatan : ‘); readln(jabatan);
If (jabatan=’Direktur’) or (jabatan=’direktur’) then
Begin
Gaji:=3000000;
Tunj:=0.1* gaji;
End
Else If (jabatan=’Manager’) or (jabatan=’manager’) then
Begin
Gaji:=2000000;
Tunj:=0.05* gaji;
End
Else If (jabatan=’Karyawan’) or (jabatan=’karyawan’) then
Begin
Gaji:=1000000;
Tunj:=0.1* gaji;
End
Else
Begin
Gaji:=800000;
Tunj:=0.1* gaji;
End;
Writeln(‘Gaji Bersih : Rp.‘,gaji);
Writeln(‘Tunjangan Jabatan : Rp.‘,tunj:9:2);
Ppn:=0.1*gaji;
Writeln(‘PPN 10 % : Rp.‘,ppn:9:2);
Total:=(gaji+total)-ppn;
Writeln(‘Total Gaji : Rp.‘,total:9:2);
Readln;
End.
Ketentuan Soal :
1. Nama Di input
2. Jabatan di input ,
Jabatan Gaji Tunjangan
Direktur 3000000 10 % dari gaji
Manager 2000000 5% dari gaji
Karyawan 1000000 2% dari gaji
OB 800000 1% dari gaji
3. Dikenakan PPN 10 % dari gaji
4. Gaji Bersih didapat dari : gaji + tunjangan – PPn
Jawabannya:
Uses crt;
Var nama:string[20];jabatan:string;
Gaji:longint;
Tunj,ppn,gajibersih:real;
Begin
Clrscr;
Write(‘Nama Karyawan : ‘); readln(nama);
Write(‘Masukkan Jabatan : ‘); readln(jabatan);
If (jabatan=’Direktur’) or (jabatan=’direktur’) then
Begin
Gaji:=3000000;
Tunj:=0.1* gaji;
End
Else If (jabatan=’Manager’) or (jabatan=’manager’) then
Begin
Gaji:=2000000;
Tunj:=0.05* gaji;
End
Else If (jabatan=’Karyawan’) or (jabatan=’karyawan’) then
Begin
Gaji:=1000000;
Tunj:=0.1* gaji;
End
Else
Begin
Gaji:=800000;
Tunj:=0.1* gaji;
End;
Writeln(‘Gaji Bersih : Rp.‘,gaji);
Writeln(‘Tunjangan Jabatan : Rp.‘,tunj:9:2);
Ppn:=0.1*gaji;
Writeln(‘PPN 10 % : Rp.‘,ppn:9:2);
Total:=(gaji+total)-ppn;
Writeln(‘Total Gaji : Rp.‘,total:9:2);
Readln;
End.
Senin, 22 Desember 2008
Senin, 15 Desember 2008
wahay
wahay kau peri kecilku
senyummu menggetarkan hatiku
wahay kau bidadariku
wajahmu begitu terang
wahay kau dewiku
cintamu begitu suci
wahay kau kekasihku
setiamu hanya untukku
senyummu menggetarkan hatiku
wahay kau bidadariku
wajahmu begitu terang
wahay kau dewiku
cintamu begitu suci
wahay kau kekasihku
setiamu hanya untukku
ketika smuanya akan berakhir
haruskah aku berdiam diri
mencoba untuk melepaskan semua ini
rasa yang dulu indah
kini mulai berakhir
sepi,sunyi,hari-hari tanpa dirimu
namun,haruskah aku bertahan
melepaskan semua kisah yang ada
haruskah aku iri dalam bayang cinta
ingin aku pergi dan menghilang
namun cahaya datang menyinariku
bunga-bunga terlihat indah dan segar
membawkan secangkir madu untukku.
haruskah aku berdiam diri
mencoba untuk melepaskan semua ini
rasa yang dulu indah
kini mulai berakhir
sepi,sunyi,hari-hari tanpa dirimu
namun,haruskah aku bertahan
melepaskan semua kisah yang ada
haruskah aku iri dalam bayang cinta
ingin aku pergi dan menghilang
namun cahaya datang menyinariku
bunga-bunga terlihat indah dan segar
membawkan secangkir madu untukku.
cinta suci
Cinta sejati takkan pernah sanggup tuk diungkapkan
Meski lewat lagu… atau lewat puisi
Cinta sejati tak mudah untuk dilukiskan
Melalui sebentuk langit biru… atau segarnya udara pagi
Cinta sejati takkan pernah bisa beranjak pergi
Meski masanya sirna… dan ceritanya tak lagi putih
Cinta sejati tak mudah untuk digoyah
Walau godaan menderu… dan kenikmatan dunia mengimaji
Hingga esok tak lagi ada
Sejak terasa waktu pertama
Hingga dunia menjadi abadi
Tak berubah semua di hati
Meski lewat lagu… atau lewat puisi
Cinta sejati tak mudah untuk dilukiskan
Melalui sebentuk langit biru… atau segarnya udara pagi
Cinta sejati takkan pernah bisa beranjak pergi
Meski masanya sirna… dan ceritanya tak lagi putih
Cinta sejati tak mudah untuk digoyah
Walau godaan menderu… dan kenikmatan dunia mengimaji
Hingga esok tak lagi ada
Sejak terasa waktu pertama
Hingga dunia menjadi abadi
Tak berubah semua di hati
Sabtu, 13 Desember 2008
Rabu, 10 Desember 2008
Selasa, 09 Desember 2008
mungkinkah kau tahu
rasa cinta yang kini membara
dan masih tersimpan
dalam lubuk jiwa
ingin kunyatakan
lewat kata yang mesra untukmu
namun ku tak kuasa
untuk melakukannya
reff:
mungkin hanya lewat lagu ini
akan kunyatakan rasa
cintaku padamu rinduku padamu
tak bertepi
mungkin hanya sebuah lagu ini
yang selalu akan kunyanyikan
sebagai tanda betapa aku
inginkan kamu
Koleksi Ungu yang lain.
Mp3 Download & Lirik Lagu Ungu - Laguku
Busby Seo Test
Senin, 08 Desember 2008
Langganan:
Postingan (Atom)