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
/
CANMSC.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
77 lines
***** CANMSC.CMD *****
ERASE
* BORDER ROUTINE REMOVED
SET INTENSITY ON
@ 6, 8 SAY [The final step is to cancel miscellaneous entries, which]
@ 7, 8 SAY [consist of Withdrawals, Account Transfers (to or from your]
@ 8, 8 SAY [account), Electronic Funds Transfers (such as "Check-O-]
@ 9, 8 SAY [Matic"), and Bank Service Charges. When you're ready for]
@ 10, 8 SAY [this final step,]
SET INTENSITY OFF
@ 13,23 SAY [HIT TO CONTINUE]
SET INTENSITY ON
@ 13,28 SAY [<RETURN>]
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ERASE
@ 1, 9 SAY [**********************************************************]
@ 2, 9 SAY [* *]
@ 3, 9 SAY [**********************************************************]
SET INTENSITY OFF
@ 2,22 SAY [CANCELING MISCELLANEOUS ENTRIES]
SET INTENSITY ON
@ 7, 9 SAY [The one-letter code on the left indicates whether the item]
@ 8, 9 SAY [is a Withdrawal (W), an Account Transfer (T), an Electronic]
@ 9, 9 SAY [Funds Transfer (E), or a Bank Service Charge (C). In the]
@ 10, 9 SAY [middle is the date of the transaction, as you entered it.]
@ 11, 9 SAY [As before, type 'C' to Cancel, 'S' to Skip, or 'X' to abort]
@ 12, 9 SAY [and exit.]
LOCATE FOR (ENTRYCAT <> 'D' .AND. ENTRYCAT <> 'd' .AND. ENTRYCAT <> 'C' .AND. ENTRYCAT <> 'c')
DO WHILE (.NOT. EOF)
SET INTENSITY ON
@ 15, 8 SAY [CODE: DATE: DEBIT: CREDIT:]
SET INTENSITY OFF
@ 15,15 SAY ENTRYCAT
@ 15,25 SAY DATE
@ 15,43 SAY DEBIT
@ 15,62 SAY CREDIT
@ 18,24 SAY [-C- -S-]
SET INTENSITY ON
@ 18,28 SAY [CANCEL]
@ 18,43 SAY [SKIP]
@ 20,27 SAY [-X- ABORT AND EXIT]
STORE ' ' TO Decision
@ 18,35 GET Decision
READ
DO WHILE (!('&Decision')<>'S' .AND. !('&Decision')<>'C')
IF !('&Decision')='X'
GO TOP
REPLACE CAN WITH F FOR CAN
RELEASE Decision
ERASE
RETURN
ENDIF
@ 22,0
STORE 1 TO N
DO WHILE N<10
STORE N+1 TO N
ENDDO
@ 22,21 SAY [INVALID CHOICE. PLEASE TRY AGAIN.]
STORE ' ' TO Decision
@ 18,35 GET Decision
READ
RELEASE N
ENDDO
@ 22,0
IF !('&Decision') = 'C'
REPLACE CAN WITH T
CONTINUE
ELSE
CONTINUE
ENDIF
ENDDO
RELEASE Decision
ERASE
RETURN