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
/
MBUG182.ARC
/
CHEX.LBR
/
ALTER.CMD
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
60 lines
*...THIS IS COMMAND FILE "ALTER" MODIFIED 09/02/83...
*...Erase the screen...
ERASE
*...Use the non-indexed file to display entries of interest...
USE &BLAST
*...Display the last check written for reference to record number...
GOTO BOTTOM
?' The last check written was:'
DISPLAY
?
*...Update the balance, starting at a number where balance is correct...
?' Enter a RECORD NO where balance'
INPUT ' is known to be correct and press RETURN ' TO SRN
STORE # TO ERN
STORE ERN + 2 TO ERN
STORE (ERN-SRN) TO VARIABLE
GOTO SRN
SKIP -1
STORE B TO TEMP
SKIP +1
STORE 1 TO INDEX
DO WHILE INDEX < VARIABLE
STORE (TEMP-A) TO TEMP
REPLACE B WITH TEMP
SKIP 1
STORE INDEX + 1 TO INDEX
*...Go back to 'do while' if all checks aren't updated yet...
ENDDO VARIABLE TIMES
*...Go back to main menu when all checks are updated...
IF INDEX = VARIABLE
RETURN
ENDIF
*...END OF COMMAND FILE 'ALTER'...
ter a RECORD NO where balance'
INPUT ' is known to be correct and press RETURN ' TO SRN
STORE # TO ERN
STORE ERN + 2 TO ERN
STORE (ERN-SRN) TO VARIABLE
GOTO SRN
SKIP -1
STORE B TO TEMP
SKIP +1
STORE 1 TO INDEX
DO WHILE INDEX < VARIABLE
STORE (TEMP-A) TO TEMP
REPLACE B WITH TEMP
SKIP 1
STORE INDEX + 1 TO INDEX
ENDDO VARIABLE TIMESOMMAND FILE "MENU" MODIFIED 8/7/83
?
DO WHILE T
ERASE
?
?
?
?' MENU'
?' ******'
@