home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug106.arc
/
CHECKS.LBR
/
$REPORT2.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
104 lines
* * * * * $REPORT2.CMD * * * * * 30 JUN 84 SMM & JJG
*
* This program will print REPORT "CHECKS WRITTEN FOR A SPECIFIED
* PURPOSE, BETWEEN SPECIFIED INCLUSIVE DATES" from $CHECKS.DBF
*
USE b:$checks
SET TALK OFF
SET EJECT OFF
STORE 'Y' TO again
DO WHILE again = 'Y'
ERASE
DO $accts.mnu
IF account = 'X'
RETURN
ENDIF
STORE 'X' TO over
DO WHILE over <> 'Y'
STORE ' ' TO start
STORE ' ' TO end
STORE ' ' TO purpose
ERASE
@ 5,15 SAY 'Enter START Date ( MM/DD/YY ) ' GET start;
PICTURE '99/99/99'
@ 7,15 SAY 'Enter END Date ( MM/DD/YY ) ' GET end;
PICTURE '99/99/99'
@ 9,15 SAY 'Enter PURPOSE of checks (one or two letters) ';
GET purpose
READ
@ 13,15 SAY 'Are all entries correct (Y/any) ? '
SET CONSOLE OFF
WAIT TO over
STORE !(over) TO over
SET CONSOLE ON
ENDDO ===> over
STORE !(purpose) to purpose
ERASE
?
?
? ' Please wait while sorting....'
USE $catgs
INDEX ON memo TO memo
USE $catgs INDEX memo
FIND &purpose
STORE descrip TO cat
USE $checks
ERASE
? CHR(7)
?
?
? ' THANK-YOU for waiting...'
?
? ' Now, be sure to turn the PRINTER ON !!!'
?
?
? ' Press any key to continue...'
SET CONSOLE OFF
WAIT
SET PRINT ON
? 'REPORT FOR', acctname, 'CHECKS DATED FROM : ',start,;
' THRU ', end
?
? 'PURPOSE OF CHECKS: ', TRIM(cat), ' -- (', purpose, ')'
?
?
REPORT FORM $REPORT2 FOR acct = '&account' .AND. ;
date >= '&start' .AND. date <= '&end' .AND. ;
memo = '&purpose' PLAIN
? CHR(7)
SET PRINT OFF
SET CONSOLE ON
?
?
? " Would you like ANOTHER 'purpose' report (Y/any) ?"
SET CONSOLE OFF
WAIT TO again
STORE !(again) TO again
SET CONSOLE ON
ENDDO
DELE FILE B:MEMO.NDX
RETURN
over
ENDDO ===> over
ENDIF ===> DATE() = '00/00/00'
* - specify disk containing command files
@ 10,9 SAY 'Enter disk drive containing command files: '
SET CONSOLE OFF
WAIT TO disk
STORE !(disk) TO disk
SET CONSOLE ON
SET DEFAULT TO &disk
RELEASE disk
DO WHILE T
ERASE
? " The GRIFFIN'S Personal Finance System"
?
? '
? ' Now, be sure to turn the PRINTER ON !!!'
?
?
? ' Press any key to continue...'
SET CONSOLE OFF
WAIT
SET PRINT ON
? 'REPO