User Tools

Site Tools


cdc:nos2.source:nam5871:np_err

NP$ERR

Table Of Contents

  • [00002] PROC NP$ERR(DIGITS)
  • [00051] PROC NP$MSG
  • [00052] PROC NP$OSIF

Source Code

NP$ERR.txt
  1. *DECK NP$ERR
  2. PROC NP$ERR(DIGITS);
  3. *IF DEF,IMS
  4. #
  5. *1DC NP$ERR
  6. *
  7. * 1. PROC NAME AUTHOR DATE
  8. * NP$ERR S.KRULEVITCH 77/05/23
  9. *
  10. * 2. FUNCTIONAL DISCRIPTION
  11. * CALLS DAYFILE MESSAGE PROCESSOR
  12. *
  13. * 3. METHOD USED
  14. * DAYFILE MESSAGE
  15. * ABORT APPLICATION
  16. * 4. ENTRY CONDITIONS
  17. * DIGITS - TWO CHARACTER RETURN CODE.
  18. *
  19. * 5. EXIT CONDITONS
  20. * STOPS IN LIEU OF EXITING.
  21. *
  22. * 6. COMDECKS CALLED
  23. * NP$CRT
  24. *
  25. * 7. ROUTINES CALLED
  26. * NP$MSG - DAYFILE MESSAGE PROCESSOR
  27. * NP$OSIF - ISSUES AN OPERATING SYSTEM REQUEST TO ABORT THE
  28. * APPLICATION
  29. *
  30. * 8. DAYFILE MESSAGES
  31. * NETWORK APPLICATION ABORTED, RC = XX.
  32. * XX RANGE FROM 01 TO 99.
  33. * RANGE 01 TO 29 USED BY NIP.
  34. * RANGE 30 TO 69 USED BY AIP.
  35. * RANGE 70 TO 99 USED BY QTRM.
  36. *
  37.  #
  38. *ENDIF
  39. BEGIN
  40.  
  41. *CALL NP$CRT
  42.  
  43. # #
  44. # PARAMETERS: #
  45. # #
  46. ITEM DIGITS C(2);
  47. #
  48.   ROUTINES CALLED:
  49. #
  50. XREF BEGIN
  51. PROC NP$MSG; # WRITE MESSAGE TO JOB DAYFILE. #
  52. PROC NP$OSIF; # ISSUE OS REQUEST. #
  53. END #XREF#
  54. #
  55.   LOCAL DECLARATIONS:
  56. #
  57. ITEM ABT I = O"01022400000000000000"; # DISPLAY CODE FOR ABT #
  58. ARRAY ERROR[0] S(4);
  59. BEGIN
  60. ITEM
  61. ERRMSG C(0,0,38) =
  62. ["NETWORK APPLICATION ABORTED, RC = . "],
  63. ERRCODE C(3,24,2),
  64. EOL U(3,48,12) = [0];
  65. END
  66. *IF,DEF,DEBUG
  67. ITEM INDEX I;
  68. *IF -DEF,XFR,1
  69. DEF LENGTH#42#;
  70. *IF DEF,XFR,1
  71. DEF LENGTH#48#;
  72. *ENDIF
  73. *IF -DEF,DEBUG
  74. *IF DEF,XFR,1
  75. DEF LENGTH #6# ;
  76. *IF -DEF,XFR,1
  77. DEF LENGTH #1# ;
  78. *ENDIF
  79. ARRAY ERRORS[0:LENGTH] S(4);
  80. BEGIN
  81. ITEM
  82. EOLS U(3,48,12),
  83. RCFIELDS C(3,48,2),
  84. ERRMSGS C(0,0,40) = [
  85. *IF,DEF,DEBUG
  86. "NETFUNC: REQUEST INVALID BEFORE NETON.29",
  87. "NETON: DUPLICATE NETON REQUEST. 30",
  88. "NP$GET: REQUEST INVALID BEFORE NETON. 31",
  89. "NP$PUT: REQUEST INVALID BEFORE NETON. 32",
  90. "NETWAIT: REQUEST INVALID BEFORE NETON.33",
  91. "NETDBG: REQUEST INVALID BEFORE NETON. 34",
  92. "NETLOG: REQUEST INVALID BEFORE NETON. 35",
  93. "NETGETQ: REQUEST INVALID BEFORE NETON.36",
  94. "NETGTLQ: REQUEST INVALID BEFORE NETON.37",
  95. "NETPUTS: REQUEST INVALID BEFORE NETON.38",
  96. "NETON: PREVIOUS REQUEST INCOMPLETE. 40",
  97. "NETSETP: PREVIOUS REQUEST INCOMPLETE. 41",
  98. "NP$GET: PREVIOUS REQUEST INCOMPLETE. 42",
  99. "NP$PUT: PREVIOUS REQUEST INCOMPLETE. 43",
  100. "NETWAIT: PREVIOUS REQUEST INCOMPLETE. 44",
  101. *IF DEF,XFR,6
  102. "NETOFF: NETOFF DURING FILE TRANSFER 45",
  103. "NETXFR: LOGIC ERROR AT XFT, BAD DD 46",
  104. "NETXFR: LOGIC ERROR AT XFR, BAD OPCODE47",
  105. "XFRINIT: NO ENTRY IN FTT AVAILABLE. 48",
  106. "NP$LOC: NO ENTRY WITH MATCHING ACN 49",
  107. "NETSTP: AIP INTERNAL STATE TABLE ERROR50",
  108. *IF,DEF,DEBUG
  109. "NP$ON: INVALID PROCESS NUMBER. 50",
  110. "NP$XFER: NWL HAS OVERFLOWED. 51",
  111. "NETFUNC: INVALID FUNCTION CODE USED. 52",
  112. "NETGET: REQ INVALID FOR DATA QUEUE. 53",
  113. "NETGETL: REQ INVALID FOR DATA QUEUE. 54",
  114. "NETGETF: REQ INVALID FOR DATA QUEUE. 55",
  115. "NETGTFL: REQ INVALID FOR DATA QUEUE. 56",
  116. "NETPUT: REQ INVALID FOR DATA QUEUE. 57",
  117. "NETPUTF: REQ INVALID FOR DATA QUEUE. 58",
  118. "NETFUNC: DWNLINE BUFFERING ALREADY ON.59",
  119. "NETFUNC: DOWNLINE BUF SIZE TOO SMALL. 60",
  120. "NETFUNC: DWNLIN BUFFERING ALREADY OFF.61",
  121. "NP$XFER: NIP NOT AVAILABLE AT SCP. 67",
  122. "NFETCH: ILLEGAL FIELD MNEMONIC. 68",
  123. "NSTORE: ILLEGAL FIELD MNEMONIC. 69",
  124. "QTENDT: REQUEST INVALID BEFORE QTOPEN.70",
  125. "QTGET: REQUEST INVALID BEFORE QTOPEN. 71",
  126. "QTPUT: REQUEST INVALID BEFORE QTOPEN. 72",
  127. "QTLINK: REQUEST INVALID BEFORE QTOPEN.73",
  128. "QTTIP: REQUEST INVALID BEFORE QTOPEN. 74",
  129. "QTCMD: REQUEST INVALID BEFORE QTOPEN. 75",
  130. "QTLEND: REQUEST INVALID BEFORE QTOPEN.76",
  131. "QTSUP: REQUEST INVALID BEFORE QTOPEN. 77",
  132. "QTOPEN: DUPLICATE QTOPEN. 80",
  133. "QTOPEN: NIT NUM-TERMS FIELD IS ZERO. 81",
  134. "QTOPEN: NETON REJECTED. 82",
  135. "QTOPEN: NETWORK NOT AVAILABLE. 83",
  136. "QTSUP: SUPERVISORY MESSAGE REJECTED. 84",
  137. "QTLINK: NO SUPPORT-A-TO-A 95",
  138. "QTGET: NETWORK LOGICAL ERROR 99",
  139. *ENDIF
  140. "0"];
  141. END
  142. *ENDIF
  143. #**********************************************************************#
  144. #
  145.   NP$ERR EXECUTION BEGINS HERE.
  146. #
  147. ERRCODE[0] = DIGITS; # BUILD ERROR MESSAGE. #
  148. NP$MSG(ERROR,0); # LIST ERROR IN DAYFILE. #
  149. *IF,DEF,DEBUG
  150. FOR INDEX = 0 STEP 1 UNTIL LENGTH DO
  151. BEGIN
  152. IF RCFIELDS[INDEX] EQ ERRCODE[0]
  153. THEN
  154. BEGIN
  155. EOLS[INDEX] = 0;
  156. NP$MSG(ERRORS[INDEX]);
  157. RCFIELDS[INDEX] = DIGITS;
  158. END
  159. END
  160. *ENDIF
  161. NP$OSIF(ABT); # ABORT THE APPLICATION. #
  162.  
  163. END #NP$ERR#
  164. TERM
cdc/nos2.source/nam5871/np_err.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator