User Tools

Site Tools


cdc:nos2.source:nam5871:lfgskip

LFGSKIP

Table Of Contents

  • [00007] SKIP TRAILER RECORDS.

Source Code

LFGSKIP.txt
  1. *DECK LFGSKIP
  2. USETEXT LFGIOD
  3. PROC LFGSKIP;
  4. BEGIN # SKIP TRAILER RECORDS #
  5. *IF DEF,IMS
  6. #
  7. ** LFGSKIP - SKIP TRAILER RECORDS.
  8. *
  9. * M. E. VATCHER 81/02/23
  10. *
  11. * LFGSKIP SKIPS TRAILER RECORDS ON THE CURRENT INPUT FILE.
  12. *
  13. * PROC LFGSKIP
  14. *
  15. * ENTRY NONE.
  16. *
  17. * EXIT NONE.
  18. *
  19. * METHOD
  20. *
  21. * DO READS UNTIL AN EOF OR EOI IS ENCOUNTERED.
  22. *
  23. #
  24. *ENDIF
  25.  
  26. #
  27. **** PROC LFGSKIP - XREF LIST BEGIN.
  28. #
  29.  
  30. XREF
  31. BEGIN
  32. ITEM IFET; # INPUT FILE FET ADDRESS #
  33. PROC LFGRDSR; # READ SEQUENTIAL RECORD #
  34. END
  35.  
  36. #
  37. ****
  38. #
  39.  
  40.  
  41. ITEM DONE B; # LOOP END INDICATOR #
  42. ITEM I U; # LOOP INDEX #
  43. ITEM STATIS U; # STATUS FROM READ #
  44.  
  45. DONE = FALSE;
  46. FOR I = 1 STEP 1 WHILE NOT DONE DO
  47. BEGIN
  48. LFGRDSR(LOC(IFET),STATIS); # READ A RECORD #
  49. IF STATIS EQ RDEOF OR STATIS EQ RDEOI
  50. THEN # THIS IS THE END OF A PARTITION #
  51. BEGIN
  52. DONE = TRUE;
  53. TEST I;
  54.  
  55. END
  56. END # GET NEXT RECORD #
  57. END TERM
cdc/nos2.source/nam5871/lfgskip.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator