Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT
OPTIONAL
TEMPDB-FILE ASSIGN TO "TEMPDB"
DISP=(MOD,KEEP,KEEP)
PERFORM UNTIL EOF
READ old generation
AT END set EOF to TRUE
IF NOT EOF
WRITE to new generation
END-IF
END-PERFORM
OPEN I-O TEMPDB-FILE.
START TEMPDB-FILE KEY IS LAST
INVALID KEY ...
END-START.
READ TEMPDB-FILE NEXT ...
identification division.
program-id. start-last.
environment division.
input-output section.
file-control.
select optional testlast assign random
organization indexed
access dynamic
record key is testlast-key.
data division.
file section.
fd testlast.
01 testlast-record.
02 testlast-key.
03 pic x(1).
03 pic x(10).
procedure division.
a.
open i-o testlast.
move all "9" to testlast-record.
write testlast-record.
move all "7" to testlast-record.
write testlast-record.
move all "1" to testlast-record.
write testlast-record.
move all "5" to testlast-record.
write testlast-record.
move all "3" to testlast-record.
write testlast-record.
start testlast key is last testlast-key.
read testlast next.
display testlast-record.
stop run.
RM/COBOL Runtime - Version 8.00.00 for 32-Bit Windows.
99999999999
COBOL STOP RUN at line 34 in program START-LAST