cdc:nos2.source:nam5871:lfgskip
Table of Contents
LFGSKIP
Table Of Contents
- [00007] SKIP TRAILER RECORDS.
Source Code
- LFGSKIP.txt
- *DECK LFGSKIP
- USETEXT LFGIOD
- PROC LFGSKIP;
- BEGIN # SKIP TRAILER RECORDS #
- *IF DEF,IMS
- #
- ** LFGSKIP - SKIP TRAILER RECORDS.
- *
- * M. E. VATCHER 81/02/23
- *
- * LFGSKIP SKIPS TRAILER RECORDS ON THE CURRENT INPUT FILE.
- *
- * PROC LFGSKIP
- *
- * ENTRY NONE.
- *
- * EXIT NONE.
- *
- * METHOD
- *
- * DO READS UNTIL AN EOF OR EOI IS ENCOUNTERED.
- *
- #
- *ENDIF
- #
- **** PROC LFGSKIP - XREF LIST BEGIN.
- #
- XREF
- BEGIN
- ITEM IFET; # INPUT FILE FET ADDRESS #
- PROC LFGRDSR; # READ SEQUENTIAL RECORD #
- END
- #
- ****
- #
- ITEM DONE B; # LOOP END INDICATOR #
- ITEM I U; # LOOP INDEX #
- ITEM STATIS U; # STATUS FROM READ #
- DONE = FALSE;
- FOR I = 1 STEP 1 WHILE NOT DONE DO
- BEGIN
- LFGRDSR(LOC(IFET),STATIS); # READ A RECORD #
- IF STATIS EQ RDEOF OR STATIS EQ RDEOI
- THEN # THIS IS THE END OF A PARTITION #
- BEGIN
- DONE = TRUE;
- TEST I;
- END
- END # GET NEXT RECORD #
- END TERM
cdc/nos2.source/nam5871/lfgskip.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator