User Tools

Site Tools


cdc:nos2.source:nam5871:npism

Table of Contents

NPISM

Table Of Contents

  • [00013] PRGM NPISM
  • [00064] PROC BLINK
  • [00065] PROC OSCHAPP
  • [00066] PROC XTRACE

Source Code

NPISM.txt
  1. *DECK NPISM
  2. USETEXT NIPDEF
  3. USETEXT AHEADER
  4. USETEXT ACB
  5. USETEXT ACNB
  6. USETEXT AT
  7. USETEXT PT
  8. USETEXT PWL
  9. USETEXT PCNB
  10. USETEXT OVERLAY
  11. USETEXT PARAMP
  12. USETEXT SUPMSG
  13. PRGM NPISM; # PROCESS AN ILLOGICAL SM FROM APPLICATION#
  14. STARTIMS;
  15. #
  16. *1DC NPISM
  17. *
  18. * 1. PROC NAME AUTHOR DATE
  19. * NPISM J.C. LEE 80/04/01
  20. *
  21. * 2. FUNCTIONAL DESCRIPTION.
  22. * PROCESS AN ILLOGICAL PRU SUPERVISORY MESSAGE FROM APPLICATION
  23. *
  24. * 3. METHOD USED.
  25. * CHECK IF LOGICAL ERROR LIMIT FOR THE APPLICATION IS REACHED,
  26. * GET BUFFER AND FORMAT THE ERR/LGL/SM
  27. * SEND LOGICAL ERROR SUPERVISORY MESSAGE TO APPLICATION
  28. *
  29. * 4. ENTRY PARAMETERS.
  30. * PARAMP1 PRU WORKLIST ADDRESS
  31. * PARAMP2 PCBN ADDRESS
  32. *
  33. * 5. EXIT PARAMETERS.
  34. * PARAMP1 NONZERO SPECIFIES ERROR CODE FOR PWL
  35. *
  36. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  37. * ACB ACNB AHEADER AT
  38. * NIPDEF OPSIZE PARAMP
  39. * PCNB PT PWL SUPMSG
  40. *
  41. * 7. ROUTINES AND OVERLAYS CALLED
  42. * BLINK LINK MESSAGE TO DATA RING
  43. * XTRACE TRACE CALLS
  44. *
  45. * 8. DAYFILE MESSAGES.
  46. * NONE
  47. *
  48. * THIS PROGRAM IS A PRIMARY OVERLAY LOADED BY SUBROUTINE OVLCALL.
  49. * WHEN EXECUTION HAS COMPLETED, A JUMP IS MADE TO LOCATION RJMAIN
  50. * TO RETURN TO THE CALLING PROGRAM.
  51. *
  52. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE PRIMARY
  53. *CALL OPSIZE
  54. *
  55. * THIS OVERLAY IS CALLED BY NPPWL.
  56. *
  57.  #
  58. STOPIMS;
  59. #
  60.   EXTERNAL VARIABLES
  61. #
  62. XREF
  63. BEGIN
  64. PROC BLINK; # LINK MESSAGE TO DATA RING #
  65. PROC OSCHAPP; # SCHEDULE APPLICATION #
  66. PROC XTRACE; # TRACE CALLS #
  67. LABEL RJMAIN; # RETURN ADDRESS #
  68. END
  69. #
  70.   LOCAL VARIABLES
  71. #
  72. ITEM REASON; # REASON CODE FOR ERR/LGL SUP MSG #
  73. ITEM DEBUGINFO; # DEBUG INFORMATION FROM PIP #
  74.  
  75. # ******************************************************************** #
  76. BEGIN
  77.  
  78. CONTROL IFEQ DEBUG,1;
  79. XTRACE("NPISM") ;
  80. CONTROL FI;
  81.  
  82. P<PWLHDR> = PARAMP1; # PWL ADDRESS #
  83. P<PCNB> = PARAMP2; # PCNB ADDRESS #
  84. P<ACNB> = PCNBACNB[0]; # ACNB ADDRESS #
  85. P<ACB> = ATACBA[ACNBAN[0]]; # ACB ADDRESS #
  86. PARAMP1 = 0; # PRESET TO NORMAL EXIT #
  87. #
  88.   CHECK IF LOGICAL ERROR LIMIT IS REACHED
  89. #
  90. IF ACBERCNT[0] LQ MAXLGERR AND # LOGICAL ERROR LIMIT NOT REACH #
  91. NOT ATNVFN[0] # APPLICATION NOT NETOFFED YET #
  92. AND NOT ATNVFF[0] # APPLICATION NOT FAILED YET #
  93. THEN
  94. BEGIN
  95.  
  96. IF ACBERCNT[0] EQ MAXLGERR
  97. THEN # LOGICAL ERROR LIMIT REACHED #
  98. REASON = RLG"IAL";
  99. ELSE # REASON CODE SPECIFIED BY PIP #
  100. REASON = PWLRC[0];
  101.  
  102. DEBUGINFO = PWLPARAM[0]; # SAVED DEBUG INFO SUPPLIED BY PIP #
  103. PWLCC[0] = O"5555"; # INDICATE ERROR LOGICAL FROM PIP #
  104. ACBERCNT[0] = ACBERCNT[0] + 1; # INCREMENT LOGICAL ERROR COUNT #
  105. P<AHEADER> = P<PWLHDR> + BLKHSIZE; # REUSE PWL #
  106. ABHWORD[0] = 0; # CLEAR ABH WORD #
  107. ABHABT[0] = APPCMD; # BLOCK TYPE #
  108. ABHACT[0] = CT60TRANS; # CHARACTER TYPE #
  109. ABHTLC[0] = PWLBS[0] - BLKHSIZE - PWLHSIZE; # SM TEXT LENGTH #
  110.  
  111. P<SUPMSG> = P<AHEADER> + ABHSIZE;
  112. ERRWD[0] = 0;
  113. PFCSFC[0] = ERRLGL; # PFC/SFC FUNCTION CODE #
  114. ERRRLG[0] = REASON; # REASON CODE FROM PIP #
  115. SPMSG1[0] = DEBUGINFO; # RESTORE DEBUG INFO FOR RBF #
  116.  
  117. BLINK(P<PWLHDR>,P<ACB>);
  118. OSCHAPP(P<ACB>); # SCHEDULE APPLICATION #
  119. END
  120.  
  121. GOTO RJMAIN;
  122. END
  123. TERM
cdc/nos2.source/nam5871/npism.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator