home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
database
/
ledgers.lbr
/
LRCMO.CZD
/
LRCMO.CMD
Wrap
OS/2 REXX Batch file
|
1987-05-10
|
1KB
|
37 lines
NOTE * Program...: LRCMO.CMD
NOTE * Version...: 2.0
NOTE * Author....: Terry Hazen
NOTE * Date......: 12/06/85
NOTE * Notice....: Copyright (c) 1985, n/SYSTEMS
STORE "l:check,l:date,l:payee,$(l:memo,1,22),l:account,l:amount"TO rfields
STORE 0 TO rctot
?
?
? rline1
?
? rline2
?
? '==========================================================================='
? 'CkNo Date Payee Memo Acct Amount'
? '==========================================================================='
GO TOP
DO WHILE .NOT. EOF
IF l:type = 'Ck' .AND. rmonth$l:date
DISPLAY OFF FIELDS &rfields
STORE rctot + l:amount to rctot
ENDI
SKIP
ENDD
? '==========================================================================='
? $(STR(0,80),1,59) + 'Total: ' + STR(rctot,9,2)
RETUe + ' contains the original code.'
? ' The file ' + newfile + ' now contains the stripped code.'
?
?
USE
DELETE FILE text.dbf
ACCEPT ' Enter <RET> to continue' TO ok
ENDD
CLEAR
RETU