home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug106.arc
/
CHECKS.LBR
/
$BALANCE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
74 lines
* * * * * $BALANCE.CMD * * * * * 6/30/84
*
* This program is used to balance your checkbook.
*
ERASE
STORE 'Y' TO again
DO WHILE again = 'Y' .OR. again = 'y'
DO $get-bal
* This program gets the memory variable MBALANCE for the
* specified account. When called, $DEPOSIT.DBF is left in
* use and MBALANCE, ACCOUNT, ACTIVE and ACCTNAME memory
* variables are available.
IF account = 'X'
RELEASE account, again
RETURN
ENDIF
ERASE
?
? ' RECONCILLIATION OF', acctname
? ' ================================='
?
?
SUM amt TO dp:out FOR acct = '&account' .AND. .NOT. can
USE $checks
SUM amt TO ck:out FOR acct = '&account' .AND. .NOT. can
?
? ' ACTUAL ACCOUNT BALANCE = $', mbalance
?
* - display total of outstanding deposits
? 'TOTAL OUTSTANDING DEPOSITS = $', dp:out
?
* - display total of outstanding checks
? 'TOTAL OUTSTANDING CHECKS = $', ck:out
?
? ' BANK STATEMENT BALANCE = $', mbalance + ck:out - dp:out
?
?
?
?
? ' Reconcile ANOTHER account (Y/any)?'
SET CONSOLE OFF
WAIT TO again
SET CONSOLE ON
ENDDO ===> again = 'y' or 'Y'
RELEASE mbalance, account, active, acctname, again, dp:out,;
ck:out
RETURN
WAIT TO right
STORE !(right) TO right
SET CONSOLE ON
IF right <> 'Y'
LOOP
ENDIF ==> right
ag $BALANCE.CMD * * * * * 6/30/84
*
* This program is used to balance your checkbook.
*
ERASE
STORE 'Y' TO again
DO WHILE again = 'Y' .OR. again = 'y'
DO $get-bal
* This program gets the memory variable MBALANCE for the
* specified account. When called, $DEPOSIT.DBF is left in
* use and MBALANCE, ACCOUNT, ACTIVE and ACCTNAME memory
* variables are available.
IF account = 'X'
RELEASE account, again
RETURN
ENDIF
ERASE
?