User Tools

Site Tools


cdc:nos2.source:nam5871:nnetrel

NNETREL

Table Of Contents

  • [00006] PROC NNETREL1)
  • [00059] PROC OMSG
  • [00060] PROC OPITRCE
  • [00061] PROC OPRETN
  • [00062] PROC ROUTE
  • [00063] PROC WRITER
  • [00064] PROC XTRACE

Source Code

NNETREL.txt
  1. *DECK NNETREL
  2. USETEXT NIPDEF
  3. USETEXT BPIPBUF
  4. USETEXT PT
  5. USETEXT DBGBUF
  6. PROC NNETREL((LFN),(FRWD));
  7. STARTIMS;
  8. #
  9. *1DC NNETREL
  10. * 1. PROC NAME AUTHOR DATE
  11. * NNETREL C. BITTNER 83/04/01
  12. *
  13. * 2. FUNCTIONAL DESCRIPTION
  14. * RELEASE DEBUG LOG FILE.
  15. *
  16. * 3. METHOD USED
  17. * ROUTE ZZZZZDN LOG FILE TO INPUT. REOPEN ZZZZZDN.
  18. * CALL OPITRCE TO REINITIALIZE NIP DEBUG LOG FILE.
  19. *
  20. * 4. ENTRY PARAMETERS
  21. * LFN - NAME OF LOCAL JOB RECORD (NRF1/NRF2)
  22. * FRWD - REWIND FLAG
  23. * 0 - REWIND FILE BEFORE READ
  24. * 1 - NO REWIND
  25. *
  26. * 5. EXIT PARAMETERS
  27. * BPAT[0] - NONZERO IF DISK ERROR ON FILE AFTER INITIALIZATION.
  28. *
  29. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  30. * NIPDEF BPIPBUF PT DBGBUF
  31. *
  32. * 7. ROUTINES CALLED
  33. * OMSG - ISSUE DAYFILE MESSAGE
  34. * OPITRCE - INITIALIZE NIP DEBUG LOG FILE
  35. * OPRETN - RETURN FILE
  36. * ROUTE - ROUTE FILE
  37. * WRITER - WRITE END OF RECORD
  38. * XTRACE - TRACE PROCEDURE CALL
  39. *
  40. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  41. * NONE
  42. *
  43.  #
  44. STOPIMS;
  45.  
  46. #
  47.   FORMAL PARAMETERS
  48. #
  49. ITEM LFN C(10); # NAME OF LOCAL JOB RECORD (JCL) #
  50. ITEM FRWD B; # REWIND FLAG #
  51. # 0 - REWIND FILE BEFORE READ #
  52. # 1 - NO REWIND #
  53.  
  54. #
  55.   EXTERNAL REFERENCES
  56. #
  57. XREF
  58. BEGIN
  59. PROC OMSG; # ISSUE DAYFILE MESSAGE #
  60. PROC OPITRCE; # INITIALIZE NIP DEBUG LOG FILE #
  61. PROC OPRETN; # RETURN FILE #
  62. PROC ROUTE; # ROUTE FILE #
  63. PROC WRITER; # WRITE END OF RECORD #
  64. PROC XTRACE; # TRACE PROCEDURE CALL #
  65. END
  66.  
  67. #
  68.   INTERNAL VARIABLES
  69. #
  70. ITEM BPFETX I; # TEMPORARY - FET POINTERS #
  71. ITEM DTIME; # TIME WORD #
  72.  
  73. BASED ARRAY LFNNAME;
  74. BEGIN
  75. ITEM LFNAME C(00,00,10); # NAME OF LOCAL FILE #
  76. ITEM LFILE I(00,00,60); # =0 IF NO LOCAL FILE #
  77. END
  78.  
  79. ARRAY PARAM P(7); # PARAM BLK TO ROUTE LFN TO INPUT #
  80. BEGIN
  81. ITEM PAR$NAME C(00,00,07)=["ZZZZZDN"]; # NAME OF FILE RTD #
  82. ITEM PAR$EC U(00,42,06); # ERROR CODE RESPONSE #
  83. ITEM PAR$F B(00,48,01); # FORCED ORIGIN FLAG #
  84. ITEM PAR$OT U(00,53,06); # FORCED JOB ORIGIN TYPE #
  85. ITEM PAR$CB B(00,59,01)=[FALSE]; # COMPLETE BIT #
  86. ITEM PAR$DISP C(01,24,02); # DISPOSITION OF FILE #
  87. ITEM PAR$EP B(01,47,01); # ERROR PROCESSING FLAG #
  88. ITEM PAR$ID B(01,58,01); # ROUTE TO CENTRAL SITE #
  89. ITEM PAR$DCF B(01,55,01); # DISPOSITION CODE SET FLAG #
  90. ITEM PAR$WD1 I(01,00,WL)=[0];
  91. ITEM PAR$WD2 I(02,00,WL)=[0];
  92. END
  93.  
  94. ARRAY DSKERRMSG S(4);
  95. BEGIN
  96. ITEM DSKERRTEXT C(0,0,30) = [" XXX ERROR NNB, LFN = ZZZZZDN."];
  97. ITEM DSKPPNAME U(0,6,18); # PP NAME - DSP OR CIO #
  98. ITEM DSKERRNN U(1,6,12); # ERROR CODE FIELD IN DAY MSG #
  99. ITEM DSKERREND U(3,0,60) = [0];
  100. END
  101.  
  102.  
  103.  
  104.  
  105. BEGIN
  106.  
  107. CONTROL IFEQ ZZDN,1;
  108.  
  109. CONTROL IFEQ DEBUG,1;
  110. XTRACE("NETREL");
  111. CONTROL FI;
  112.  
  113.  
  114. P<LFNNAME> = LOC(LFN);
  115. IF LFILE[0] NQ 0
  116. THEN # THERE IS A LOCAL FILE TO BE COPIED #
  117. BEGIN
  118. IF BPNAME[0] EQ "ZZZZZDN" AND NIPINIT
  119. THEN
  120. BEGIN # ROUTE ZZZZZDN LOG FILE TO INPUT #
  121. IF BPAT[0] EQ 0
  122. THEN # NO I/O ERROR HAS OCCURRED ON ZZZZZDN FIL#
  123. BEGIN
  124. WRITER(BPFET,1); # WRITE END OF RECORD TO ZZZZZDN FILE #
  125. IF BPAT[0] NQ 0
  126. THEN # I/O ERROR HAS OCCURRED ON ZZZZZDN FILE #
  127. BEGIN
  128. DSKPPNAME[0] = "CIO"; # NAME OF PP WHICH DETECTED ERROR #
  129. DSKERRNN[0] = BPAT[0] - (BPAT[0]/8)*8 +
  130. (BPAT[0]/8)*64 + O"3333";
  131. OMSG(DSKERRMSG,0); # ISSUE DAYFILE MESSAGE #
  132. END
  133. ELSE # NO I/O ERROR HAS OCCURRED ON ZZZZZDN #
  134. BEGIN
  135. PAR$F[0] = TRUE; # SET ROUTE TO SYSTEM ORIGIN #
  136. PAR$OT[0] = SYOT;# SYSTEM ORIGIN JOB TYPE #
  137. PAR$CB[0] = FALSE; # CLEAR COMPLETION BIT #
  138. PAR$DISP[0] = "IN"; # DISPOSITION OF FILE IS INPUT QUEUE#
  139. PAR$DCF[0] = TRUE; # DISPOSITION CODE SET FLAG #
  140. PAR$EC[0] = 0; # INITIALIZE ERROR CODE FIELD #
  141. PAR$EP[0] = TRUE;# SET ERROR PROCESSING FLAG #
  142. PAR$ID[0] = TRUE;# ROUTE TO CENTRAL SITE #
  143. ROUTE(PARAM,1); # ROUTE ZZZZZDN FILE #
  144. IF PAR$EC[0] NQ 0
  145. THEN # DSP DETECTED ERROR - FILE NOT ROUTED #
  146. BEGIN
  147. DSKPPNAME[0] = "DSP"; # NAME OF PP WHICH DETECTED ERRO#
  148. DSKERRNN[0] = PAR$EC[0] - (PAR$EC[0]/8)*8 +
  149. (PAR$EC[0]/8)*64 + O"3333";
  150. OMSG(DSKERRMSG,0); # ISSUE DAYFILE MESSAGE #
  151. OPRETN(BPFET); # RETURN BAD FILE #
  152. END
  153. END
  154. END
  155. IF BPAT[0] NQ 0
  156. THEN # ZZZZZDN FILE IS BAD #
  157. BEGIN
  158. OPRETN(BPFET); # RETURN BAD FILE #
  159. END
  160. END
  161.  
  162. OPITRCE(LFN,FRWD); # INITIALIZE NEW NIP DEBUG LOG FILE #
  163. END
  164. CONTROL FI;
  165. END
  166. TERM
1)
LFN),(FRWD
cdc/nos2.source/nam5871/nnetrel.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator