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
/
RECNCILE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
80 lines
***** RECNCILE.CMD *****
RELEASE CmChoice
STORE F TO LATER
DO WHILE TRUE
@ 2, 5 SAY [*********************************************************************]
@ 3, 5 SAY [* *]
@ 4, 5 SAY [*********************************************************************]
SET INTENSITY OFF
@ 3,27 SAY [CHECKBOOK RECONCILIATION]
@ 8,27 SAY [1 Cancel Checks]
@ 9,27 SAY [2 Cancel Deposits]
@ 10,27 SAY [3 Cancel Miscellaneous]
@ 11,27 SAY [4 Printed Summary]
@ 12,27 SAY [5 Initialize New Month]
SET INTENSITY ON
@ 14,27 SAY [A ABORT]
@ 15,27 SAY [X EXIT]
IF .NOT. LATER
@ 8,25 SAY [>]
ENDIF
SET INTENSITY OFF
@ 18,32 SAY [CHOICE?]
STORE ' ' TO Choice
SET INTENSITY ON
@ 18,41 GET Choice
READ
DO WHILE (Choice < '1' .OR. Choice > '5') .AND. (Choice<>'M'.AND.Choice<>'m')
@ 20,0
STORE 1 TO N
DO WHILE N<10
STORE N+1 TO N
ENDDO
RELEASE N
DO CASE
CASE Choice = 'X' .OR. Choice = 'x'
RELEASE EndBal,BegBal,CheckBal,CanCheck,CanDep,CanMscCrd,CanMscDeb,TotCanCrd
RELEASE TotCanDeb,OutCheck,OutDep,OutMscCrd,OutMscDeb,TotOutCrd,TotOutDeb,P,C
RELEASE Out,Descrip,Balance,MNo,StateBal
RELEASE Later,Choice
ERASE
RETURN
CASE Choice = 'A' .OR. Choice = 'a'
RELEASE LATER
REPLACE CAN WITH F FOR CAN
RETURN
OTHERWISE
@ 20,22 SAY [INVALID CHOICE. PLEASE TRY AGAIN.]
STORE ' ' TO Choice
@ 18,41 GET Choice
READ
ENDCASE
ENDDO
DO CASE
CASE Choice = 'M' .OR. Choice = 'm'
ERASE
DISPLAY MEMORY
WAIT
ERASE
CASE Choice = '1'
DO CANCK
@ 9,25 SAY [>]
STORE T TO LATER
CASE Choice = '2'
DO CANDEP
@ 10,25 SAY [>]
STORE T TO LATER
CASE Choice = '3'
DO CANMSC
@ 11,25 SAY [>]
STORE T TO LATER
CASE Choice = '4'
DO PRNTSUM
@ 12,25 SAY [>]
STORE T TO LATER
CASE Choice = '5'
DO INIT
RELEASE LATER
RETURN
ENDCASE
ENDDO