User Tools

Site Tools


cdc:nos2.source:nam5871:lfgrder

LFGRDER

Table Of Contents

  • [00007] PRINT READ ERROR MESSAGE.

Source Code

LFGRDER.txt
  1. *DECK LFGRDER
  2. USETEXT LFGIOD,LFGFN
  3. PROC LFGRDER(STATIS);
  4. BEGIN
  5. *IF DEF,IMS
  6. #
  7. ** LFGRDER - PRINT READ ERROR MESSAGE.
  8. *
  9. * M. E. VATCHER 81/02/23
  10. *
  11. * LFGRDER WRITES A READ ERROR MESSAGE TO THE OUTPUT FILE.
  12. *
  13. * PROC LFGRDER(STATIS)
  14. *
  15. * ENTRY STATIS ERROR CODE
  16. *
  17. * EXIT NONE.
  18. *
  19. * METHOD
  20. *
  21. * DEPENDING ON THE ERROR CODE, ONE OF THREE ERROR MESSAGES
  22. * IS SENT TO THE OUTPUT FILE.
  23. *
  24. #
  25. *ENDIF
  26.  
  27. #
  28. **** PROC LFGRDER - XREF LIST BEGIN.
  29. #
  30.  
  31. XREF
  32. BEGIN
  33. ITEM OUTPUT U; # FWA OF OUTPUT FILE FET #
  34. PROC WRITEC; # WRITE LINE TO CIO BUFFER #
  35. PROC WRITER; # WRITE RECORD #
  36. FUNC XCDD C(10); # CONVERT INTEGER TO DECIMAL DISPLAY CODE #
  37. FUNC XSFW C(10); # SPACE FILL WORD #
  38. END
  39.  
  40. #
  41. ****
  42. #
  43.  
  44.  
  45. ITEM STATIS U;
  46. ITEM TEMP C(10);
  47.  
  48. ARRAY BF [0:0] S(5);
  49. BEGIN
  50. ITEM BF1 C(0,0,44) =
  51. ["HEADER RECORD TOO LARGE IN XXXXXXX FILE NNN."];
  52. ITEM BFLFN C(2,42,7);
  53. ITEM BFFILE C(4,0,3);
  54. ITEM BFZ U(4,24,36) = [ 0 ];
  55. END
  56.  
  57. ARRAY PEOF [0:0] S(3);
  58. BEGIN
  59. ITEM PEOF1 C(0,0,26) =
  60. [" PREMATURE EOF ON XXXXXXX."];
  61. ITEM PEOFLFN C(1,48,7);
  62. ITEM PEOFZ U(2,42,18) = [ 0 ];
  63. END
  64.  
  65. ARRAY PEOI [0:0] S(3);
  66. BEGIN
  67. ITEM PEOI1 C(0,0,26) =
  68. [" PREMATURE EOI ON XXXXXXX."];
  69. ITEM PEOILFN C(1,48,7);
  70. ITEM PEOIZ U(2,42,18) = [ 0 ];
  71. END
  72.  
  73. IF STATIS EQ RDBFULL
  74. THEN # HEADER RECORD TOO LARGE #
  75. BEGIN
  76. TEMP = XSFW(FNAME[LFN]);
  77. BFLFN[0] = C<0,7>TEMP;
  78. TEMP = XCDD(FILENUM);
  79. BFFILE = C<7,3>TEMP;
  80. WRITEC(OUTPUT,BF);
  81. WRITER(OUTPUT,"R");
  82. END
  83. ELSE IF STATIS EQ RDEOF
  84. THEN # PREMATURE EOF #
  85. BEGIN
  86. TEMP = XSFW(FNAME[LFN]);
  87. PEOFLFN[0] = C<0,7>TEMP;
  88. WRITEC(OUTPUT,PEOF);
  89. WRITER(OUTPUT,"R");
  90. END
  91. ELSE IF STATIS EQ RDEOI
  92. THEN # PREMATURE EOI #
  93. BEGIN
  94. TEMP = XSFW(FNAME[LFN]);
  95. PEOILFN = C<0,7>TEMP;
  96. WRITEC(OUTPUT,PEOI);
  97. WRITER(OUTPUT,"R");
  98. END
  99. END TERM
cdc/nos2.source/nam5871/lfgrder.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator