User Tools

Site Tools


cdc:nos2.source:nam5871:xerrmsg

XERRMSG

Table Of Contents

  • [00005] PRGM XERRMSG
  • [00061] PROC OMSG
  • [00062] PROC ABORT
  • [00063] PROC XTRACE

Source Code

XERRMSG.txt
  1. *DECK XERRMSG
  2. USETEXT NIPDEF
  3. USETEXT MSGIDX
  4. USETEXT PARAMS
  5. PRGM XERRMSG; # ISSUE DAYFILE MESSAGE #
  6.  
  7. STARTIMS;
  8. #
  9. *1DC XERRMSG
  10. *
  11. * 1. PROC NAME AUTHOR DATE
  12. * XERRMSG P.C.TAM 80/02/11
  13. *
  14. * 2. FUNCTIONAL DESCRIPTION.
  15. * SECONDARY OVERLAY FOR NIP-S DAYFILE MESSAGES.
  16. *
  17. * 3. METHOD USED.
  18. * ERROR MESSAGE INDEX IS PASSED VIA COMMON BLOCK ITEM PARAMS1
  19. * ERROR MESSAGE IN ARRAY ERRTEXT
  20. *
  21. * 4. ENTRY PARAMETERS.
  22. * PARAMS1 MESSAGE INDEX
  23. * PARAMS2 JOBNAME IF NECCESSARY
  24. *
  25. * 5. EXIT PARAMETERS. NONE.
  26. *
  27. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  28. * MSGIDX NIPDEF OSSIZE PARAMS
  29. *
  30. * 7. ROUTINES CALLED.
  31. * OMSG DAYFILE MESSAGES
  32. * XTRACE RECORD PROCEDURE CALLS
  33. *
  34. * 8. DAYFILE MESSAGES.
  35. * *NIP FATAL ERROR PROC = XXXX.*
  36. * *SECURITY VIOLATION APP XXXXXXX.*
  37. * *APP SENT BLK ON BROKEN CONNECTION.*
  38. * *NIP UNABLE TO FIND FAILED APP XXXXXXX.*
  39. * *BAD MINACT/MAXACN VALUE JOBID=XXXXXXX.*
  40. * *BAD NETWORK BLOCK DISCARDED.*
  41. * *NIP SHUTDOWN COMPLETE.*
  42. * *NIP/SCP ERROR RC = XXB,JOBID=XXXX*
  43. * *CS FAILURE.*
  44. * *BREAK OUTSTANDING.*
  45. *
  46. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED BY SUBROUTINE
  47. * OVLCALL. WHEN EXECUTION IS COMPLETED, A JUMP IS MADE TO
  48. * LOCATION RJMAIN TO RETURN TO THE CALLING PROGRAM.
  49. *
  50. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  51. *CALL OSSIZE
  52. *
  53. *
  54.  #
  55. STOPIMS;
  56. #
  57.   EXTERNAL VARIABLES
  58. #
  59. XREF
  60. BEGIN
  61. PROC OMSG; # DAYFILE MESSAGE #
  62. PROC ABORT ;
  63. PROC XTRACE; # TRACE CALL #
  64. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  65. END
  66. #
  67.   INTERNAL VARIABLES
  68. #
  69. ARRAY ERRMSG S(4); # ASSEMBLEY AREA FOR ERROR MESSAGE #
  70. BEGIN
  71. ITEM TEXT C(0,0,38);
  72. ITEM EM01ID C(2,18,4);
  73. ITEM EM02ID U(2,18,42);
  74. ITEM EM04ID U(3,0,42);
  75. ITEM EM07RC U(2,0,12);
  76. ITEM EM07ID U(3,0,42);
  77. ITEM ENDTEXT I(3,48,12) = [0];
  78. END
  79. ARRAY ERRTEXT[1:MSGNUM] S(4);
  80. BEGIN
  81. ITEM EM C(0,0,38) = [
  82. "NIP FATAL ERROR PROC = .", # DFMSG01 #
  83. "SECURITY VIOLATION APP .", # DFMSG02 #
  84. "APP SENT BLK ON BROKEN CONNECTION.", # DFMSG03 #
  85. "NIP UNABLE TO FIND FAILED APP .", # DFMSG04 #
  86. "BAD NETWORK BLOCK DISCARDED.", # DFMSG05 #
  87. "NIP SHUTDOWN COMPLETE.", # DFMSG06 #
  88. " NIP/SCP ERROR RC = B,JOBID= ", # DFMSG07 #
  89. "BREAK OUTSTANDING.", # DFMSG11 #
  90. "NIP RECEIVED BLK ON PRU CONNECTION.", # DFMSG09 #
  91. "BAD MINACN/MAXACN VALUE JOBID= .", # DFMSG20 #
  92. "INVALID TRIGGER NUMBER - STTP." # DFMSG26 #
  93. ];
  94. END
  95. ITEM ERRNUM; # ERROR MESSAGE NUMBER TO BE DAYFILED #
  96. ITEM TEMP; # TEMPORARY STORAGE LOCATION #
  97. # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
  98. BEGIN
  99. CONTROL IFEQ DEBUG,1 ;
  100. XTRACE("XERRM") ;
  101. CONTROL FI;
  102.  
  103. ERRNUM = B<54,6> PARAMS1;
  104. TEXT = EM[ERRNUM];
  105. IF ERRNUM EQ 1
  106. THEN
  107. EM01ID[0] = C<0,4>PARAMS6;
  108. IF ERRNUM EQ DFMSG02
  109. THEN
  110. EM02ID[0] = B<0,42>PARAMS2;
  111. IF ERRNUM EQ DFMSG04 OR ERRNUM EQ DFMSG20
  112. THEN EM04ID = B<0,42> PARAMS2 ;
  113. IF ERRNUM EQ DFMSG07
  114. THEN
  115. BEGIN
  116. TEMP = PARAMS2/8;
  117. EM07RC[0] = TEMP*O"100" + PARAMS2-TEMP*8 + O"3333";
  118. EM07ID[0] = B<0,42> PARAMS3;
  119. END
  120. OMSG(ERRMSG,0); # ISSUE DAYFILE MESSAGE #
  121. IF PARAMS1 GR 64
  122. THEN
  123. ABORT(0,0) ;
  124. ELSE
  125. GOTO RJMAIN;
  126.  
  127. END
  128. TERM
cdc/nos2.source/nam5871/xerrmsg.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator