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
/
ENTERDEP.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
70 lines
***** ENTERDEP.CMD *****
SET INTENSITY ON
RESTORE FROM &UseBase
ERASE
STORE DATE() TO MDate
@ 1, 5 SAY [*****************************************************************]
@ 2, 5 SAY [* *]
@ 3, 5 SAY [*****************************************************************]
SET INTENSITY OFF
@ 2,30 SAY [ENTERING DEPOSITS]
SET INTENSITY ON
APPEND BLANK
REPLACE ENTRYCAT WITH 'D'
REPLACE DATE WITH MDate
@ 7,31 SAY [DATE:]
@ 8,29 SAY [AMOUNT:]
@ 10,19 SAY [PREVIOUS BALANCE:]
@ 11,24 SAY [NEW BALANCE:]
SET COLON OFF
@ 7,38 GET DATE PICTURE '99/99/99'
@ 8,38 GET CREDIT
SET COLON ON
@ 10,38 SAY STR(Balance,8,2)
READ
IF CREDIT = 0
DELETE
PACK
RELEASE MDate
SAVE TO &UseBase
RELEASE Balance
RELEASE MNo
RELEASE CkChoice
RETURN
ENDIF
STORE Balance + CREDIT TO Balance
@ 11,37 SAY STR(Balance,8,2)
SET INTENSITY OFF
@ 15,26 SAY [-HIT TO CONTINUE-]
SET INTENSITY ON
@ 15,31 SAY [<RETURN>]
SET CONSOLE OFF
WAIT
SET CONSOLE ON
RELEASE MDate
SAVE TO &UseBase
RELEASE Balance
RELEASE MNo
RELEASE CkChoice
RETURN DO GetBase
ERASE
USE
CASE CkChoice = '5'
STORE 'Recncile' to CmChoice
DO GetBase
ERASE
USE
CASE CkChoice = '6'
STORE 'EditCk' TO CmChoice
DO GetBase
ERASE
USE
ENDCASE
ENDDO
ENTERING DEPOSITS]
SET INTENSITY ON
APPEND BLANK
REPLACE ENTRYCAT WITH 'D'
REPLACE DATE WITH MDate
@ 7,31 SAY [DATE:]
@