home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG061.ARC
/
VERIFY.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
70 lines
***** VERIFY.CMD *****
USE &UseBase
RESTORE FROM &UseBase
RELEASE CmChoice
ERASE
*@ 11,20 SAY "BKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKC"
*@ 12,20 SAY "J J"
*@ 13,20 SAY "AKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKD"
SET INTENSITY ON
@ 12,24 SAY "VERIFICATION IN PROGRESS"
SUM CREDIT TO VCredit
SUM DEBIT TO VDebit
STORE (StateBal + VCredit - VDebit) TO VBal
ERASE
DO CASE
CASE VBal <> Balance
STORE VBal - Balance to Error
SET INTENSITY OFF
@ 11,26 SAY "VBalance =" + STR(VBal,8,2)
@ 12,26 SAY "Balance =" + STR(Balance,8,2)
@ 14,26 SAY "Error =" + STR(Error,8,2)
@ 16,16 SAY "-U- -X-"
SET INTENSITY ON
@ 16,20 SAY "UPDATE BALANCE"
@ 16,43 SAY "EXIT TO MENU"
STORE ' ' TO Decision
@ 16,35 GET Decision
READ
RELEASE VCredit
RELEASE VDebit
RELEASE Error
IF !('&Decision') = 'U'
RELEASE Decision
STORE VBal TO Balance
RELEASE VBal
SAVE TO &UseBase
RELEASE Balance
RELEASE MNo
RELEASE CkChoice
RETURN
ELSE
RELEASE StateBal
RELEASE Decision
RELEASE VBal
RELEASE Balance
RELEASE MNo
RELEASE CkChoice
RETURN
ENDIF
CASE VBal = Balance
SET INTENSITY OFF
@ 12,24 SAY "BALANCE OF "+STR(VBal,8,2)+" VERIFIED"
@ 16,26 SAY "HIT TO CONTINUE"
SET INTENSITY ON
@ 16,30 SAY "<RETURN>"
SET CONSOLE OFF
WAIT
SET CONSOLE ON
RELEASE StateBal
RELEASE Decision
RELEASE VBal
RELEASE VCredit
RELEASE VDebit
RELEASE Balance
RELEASE MNo
RELEASE CkChoice
RETURN
ENDCASE
RETURN