User Tools

Site Tools


cdc:nos2.source:nam5871:stpherr

STPHERR

Table Of Contents

  • [00004] PRGM STPHERR
  • [00060] PROC OMSG
  • [00061] PROC XTRACE
  • [00062] FUNC XCDD C(10)

Source Code

STPHERR.txt
  1. *DECK STPHERR
  2. USETEXT NIPDEF
  3. USETEXT PARAMS
  4. PRGM STPHERR;
  5. STARTIMS;
  6. #
  7. *1DC STPHERR
  8. *
  9. * 1. PROC NAME AUTHOR DATE
  10. * STPHERR C. BITTNER 81/07/30
  11. *
  12. * 2. FUNCTIONAL DESCRIPTION
  13. * ISSUE ERROR MESSAGE FOR AN ILLEGAL STATE TABLE
  14. * TRIGGER ON THE HOST SIDE.
  15. *
  16. * 3. METHOD USED
  17. * FORMAT THE ERROR MESSAGE
  18. * CONVERT THE INFORMATION TO THE PROPER DISPLAY FORMAT
  19. * CALL ROUTINE OMSG TO DAYFILE THE ERROR MESSAGE
  20. *
  21. * 4. ENTRY PARAMETERS
  22. * PARAMS1 - APPLICATION NUMBER
  23. * PARAMS2 - APPLICATION CONNECTION NUMBER
  24. * PARAMS3 - TRIGGER NUMBER
  25. * PARAMS4 - CURRENT STATE
  26. * PARAMS6 - NAME OF STATE TABLE PROCESSOR
  27. *
  28. * 5. EXIT PARAMETERS
  29. * NONE
  30. *
  31. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  32. * NIPDEF
  33. * PARAMS
  34. * OSSIZE
  35. *
  36. * 7. ROUTINES CALLED
  37. * OMSG - ISSUE NAM DAYFILE MESSAGE
  38. * XTRACE - RECORD PROCEDURE CALL
  39. * XCDD - CONVERT DECIMAL TO DISPLAY
  40. *
  41. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  42. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED BY
  43. * SUBROUTINE OVLCALL.
  44. * THIS PROGRAM IS CALLED BY HBSTTP AND HCSTTP.
  45. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  46. *CALL OSSIZE
  47. *
  48.  #
  49. STOPIMS;
  50.  
  51. ITEM STPROC C(6); # NAME OF STATE TABLE PROCESSOR #
  52. ITEM AN U; # APPLICATION NUMBER #
  53. ITEM CN U; # APPLICATION CONNECTION NUMBER #
  54. ITEM TRIG U; # STATE TABLE TRIGGER NUMBER #
  55. ITEM STATE U; # STATE TABLE PROCESSOR STATE #
  56.  
  57. # EXTERNAL VARIABLES #
  58. XREF
  59. BEGIN
  60. PROC OMSG; # ISSUE NAM DAYFILE MESSAGE #
  61. PROC XTRACE; # RECORD PROCEDURE CALL #
  62. FUNC XCDD C(10); # CONVERT DECIMAL TO DISPLAY #
  63. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  64. END
  65.  
  66. # INTERNAL VARIABLES #
  67. ITEM SCRATCH; # SCRATCH VARIABLE #
  68.  
  69. ARRAY STPMSGH P(4);
  70. BEGIN
  71. ITEM ERRMSGH C(00,00,35) =
  72. ["NIP/ ERR AN= ,CN= , , ."];
  73. ITEM STPH C(00,24,06);
  74. ITEM ANH C(01,48,03);
  75. ITEM CNH C(02,30,03);
  76. ITEM TRIGGER C(02,54,02);
  77. ITEM STATEH C(03,12,02);
  78. ITEM ZERO U(03,24,36) = [0];
  79. END
  80.  
  81. BEGIN
  82.  
  83. CONTROL IFEQ DEBUG,1;
  84. XTRACE("STPHE") ;
  85. CONTROL FI;
  86.  
  87. AN = PARAMS1; # APPLICATION NUMBER #
  88. CN = PARAMS2; # APPLICATION CONNECTION NUMBER #
  89. TRIG = PARAMS3; # TRIGGER NUMBER #
  90. STATE = PARAMS4; # CURRENT STATE #
  91. STPROC = PARAMS6; # NAME OF STATE TABLE PROCESSOR #
  92. STPH = STPROC; # NAME OF STATE TABLE PROCESSOR #
  93. SCRATCH = XCDD(AN); # CONVERT APPL NUM TO DISPLAY #
  94. ANH = C<7,3>SCRATCH;
  95. SCRATCH = XCDD(CN); # CONVERT CN TO DISPLAY #
  96. CNH = C<7,3>SCRATCH;
  97. SCRATCH = XCDD(TRIG); # CONVERT TRIGGER NUM TO DISPLAY #
  98. TRIGGER = C<8,2>SCRATCH;
  99. SCRATCH = XCDD(STATE); # CONVERT STATE NUM TO DISPLAY #
  100. STATEH = C<8,2>SCRATCH;
  101. OMSG(STPMSGH,0); # DAYFILE MESSAGE #
  102. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  103. END
  104. TERM
cdc/nos2.source/nam5871/stpherr.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator