User Tools

Site Tools


cdc:nos2.source:nam5871:cssain

CSSAIN

Table Of Contents

  • [00008] PROC CSSAIN
  • [00009] CSSAIN - ACTION INFO COMMAND
  • [00014] ACTION INFO COMMAND.
  • [00045] PROC SSBSBF
  • [00046] PROC SSTAQE
  • [00047] FUNC XCDD

Source Code

CSSAIN.txt
  1. *DECK CSSAIN
  2. USETEXT TEXTCS;
  3. USETEXT TXCMDCS;
  4. USETEXT TEXTSS;
  5. USETEXT TXTAPSS;
  6. USETEXT TXTSMCS;
  7. USETEXT TXTSUSS;
  8. PROC CSSAIN;
  9. # TITLE CSSAIN - ACTION INFO COMMAND #
  10.  
  11. BEGIN # CSSAIN #
  12.  
  13. #
  14. ** CSSAIN - ACTION INFO COMMAND.
  15. *
  16. * C. BRION 82/06/15.
  17. *
  18. * THIS PROCEDURE PERFORMS THE PROCESSING FOR THE INFO COMMAND.
  19. *
  20. * PROC CSSAIN
  21. *
  22. * ENTRY:
  23. *
  24. * HDRCMD = THE COMMAND HEADER WORD.
  25. * PARMS = ARRAY THAT HOLDS THE COMMAND TEXT, THE SYNTAX PARAMETER
  26. * LIST AND THE ADDRESS PARAMETER LIST.
  27. *
  28. * EXIT:
  29. *
  30. * A STATUS LINE FOR EACH NPU AND OPERATOR CURRENTLY ACTIVE TO
  31. * CS IS ISSUED TO THE ORIGIN OPERATOR VIA AN ENTRY TO THE
  32. * CONNECTION TRAFFIC QUEUE.
  33. *
  34. #
  35.  
  36.  
  37.  
  38.  
  39. #
  40. **** PROC CSSAIN XREF LIST
  41. #
  42.  
  43. XREF
  44. BEGIN
  45. PROC SSBSBF; # SS-STORE BIT FIELD #
  46. PROC SSTAQE; # SS-ACCEPT QUEUE ENTRY #
  47. FUNC XCDD; # MACREL-DCD INTEGER TO CHAR#
  48. END
  49. #
  50. ****
  51. #
  52.  
  53. #
  54. * PROC CSSAIN ITEM DEFS
  55. #
  56.  
  57. ITEM CNST1 I; # CONSTANT 1 #
  58. ITEM CNST2 I; # CONSTANT 2 #
  59. ITEM CNST3 I; # CONSTANT 3 #
  60. ITEM NPUORD I; # NPU ORDINAL #
  61. ITEM OCBORD I; # OCB ORDINAL #
  62. ITEM I I;
  63.  
  64. #
  65. * PROC CSSAIN ARRAY DEFS
  66. #
  67.  
  68.  
  69. #
  70. * BLANKLINE - BLANK LINE FOR DISPLAY.
  71. #
  72.  
  73. ARRAY BLANKLINE [00:00] S(1);
  74. BEGIN
  75. ITEM BLA$TXT0 C(00,00,01) = [" "];
  76. ITEM BLA$ZERO U(00,06,54) = [0];
  77. END
  78.  
  79.  
  80.  
  81. #
  82. * NPLINE - MSG ARRAY FOR NPU INFO LINE.
  83. #
  84.  
  85. ARRAY NPLINE [00:00] S(4);
  86. BEGIN
  87. ITEM NPL$TXT0 C(00,00,04) = ["NPU:"];
  88. ITEM NPL$NPNAME C(00,24,07); # NPU NAME #
  89. ITEM NPL$TXT1 C(01,06,01) = [","];
  90. ITEM NPL$NID C(01,12,03); # NPU NODE ID #
  91. ITEM NPL$TXT2 C(01,30,01) = [","];
  92. ITEM NPL$STATE C(01,36,02); # NPU STATE #
  93. ITEM NPL$TXT3 C(01,48,01) = [","];
  94. ITEM NPL$NGO C(01,54,06); # NEED GO STATE #
  95. ITEM NPL$TXT4 C(02,30,01) = [","];
  96. ITEM NPL$TNAM C(02,36,07); # TERM NAME #
  97. ITEM NPL$ZBYT U(03,18,42) = [0];
  98. END
  99.  
  100. #
  101. * OPLINE - MSG ARRAY FOR OPERATOR INFO LINE.
  102. #
  103.  
  104. ARRAY OPLINE[00:00] S(4);
  105. BEGIN
  106. ITEM OPL$TXT0 C(00,00,04) = ["NOP:"];
  107. ITEM OPL$TNAM C(00,24,07); # OP TERMINAL NAME #
  108. ITEM OPL$TXT1 C(01,06,01) = [","];
  109. ITEM OPL$UNAM C(01,12,07); # USER NAME #
  110. ITEM OPL$TXT2 C(01,54,02) = [", "];
  111. ITEM OPL$ACN U(02,06,18); # ACN VALUE #
  112. ITEM OPL$CTL C(02,24,05); # CONTROL TEXT #
  113. ITEM OPL$ZERO U(02,54,06) = [0];
  114. ITEM OPL$ZERO2 I(03,00,60) = [0];
  115. END
  116.  
  117.  
  118. #
  119. * TN - TERMINAL NAME BUFFER TO MAKE THE NAME RIGHT JUSTIFIED IN
  120. * THE CM WORD.
  121. #
  122. ARRAY TN [00:00] S(1);
  123. BEGIN
  124. ITEM TN$NAME C(00,18,07);
  125. END
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. #
  133. * PROC CSSAIN START
  134. #
  135.  
  136.  
  137. #
  138. * INITIALIZE OUTGOING ENTRY AND LOCAL BIT MOVE VARIABLES.
  139. #
  140.  
  141. WCB$WORD[1] = 0;
  142. ABHWORD[1] = 0;
  143. ABHADR[1] = HDR$OPORD[0]; # OCB ORD FIELD #
  144. WCB$SMID[1] = SMID"TTEXT";
  145.  
  146. OCBORD = ABHADR[1];
  147.  
  148.  
  149. #
  150. * SET UP DISPLAY STARTING WITH BLANK LINE.
  151. #
  152.  
  153. WCB$WC[1] = 3;
  154. SSTAQE(P<CNQ>,WCBUF[1],ABH[1],BLANKLINE[0]);
  155.  
  156.  
  157. WCB$WC[1] = 6;
  158. FOR NPUORD = 0 STEP 1 WHILE NPUORD LS CSNPCNT
  159. DO
  160. BEGIN
  161. IF NPU$STAT[NPUORD] NQ SUPSTAT"SUPLOST"
  162. THEN
  163. BEGIN
  164. NPL$NPNAME[0] = NPU$NAME[NPUORD];
  165. NPL$NID[0] = NPU$DNID[NPUORD];
  166.  
  167. IF NPU$CNOP[NPUORD] NQ 0
  168. THEN
  169. BEGIN
  170. NPL$TXT4[0] = ",";
  171. TN$NAME[0] = OC$TNAM[NPU$CNOP[NPUORD]];
  172. CNST1 = 2;
  173. CNST2 = 36;
  174. CNST3 = 42;
  175. SSBSBF(NPLINE,CNST1,CNST2,CNST3,TN);
  176. END
  177. ELSE
  178. BEGIN
  179. CNST1 = 2;
  180. CNST2 = 30;
  181. CNST3 = 48;
  182. SSBSBF(NPLINE,CNST1,CNST2,CNST3," ");
  183. END
  184.  
  185. IF NPU$STAT[NPUORD] EQ SUPSTAT"SUP"
  186. THEN
  187. NPL$STATE[0] = "AC";
  188. ELSE
  189. NPL$STATE[0] = "MI";
  190.  
  191. CNST1 = 1;
  192. CNST2 = 54;
  193. CNST3 = 36;
  194. IF NPU$GFLAG[NPUORD]
  195. THEN
  196. BEGIN
  197. TN$NAME[0] = " NEEDGO";
  198. SSBSBF(NPLINE,CNST1,CNST2,CNST3,TN);
  199. END
  200. ELSE
  201. BEGIN
  202. SSBSBF(NPLINE,CNST1,CNST2,CNST3," ");
  203. END
  204.  
  205. SSTAQE(P<CNQ>,WCBUF[1],ABH[1],NPLINE[0]);
  206. END
  207. END # FOR NPUORD #
  208.  
  209.  
  210.  
  211.  
  212. WCB$WC[1] = 6;
  213. FOR OCBORD = HOPORD$ STEP 1 WHILE OCBORD LQ MAXACN$
  214. DO
  215. BEGIN
  216.  
  217. IF OC$STATE[OCBORD]
  218. THEN
  219. BEGIN
  220.  
  221. IF OC$TYPE[OCBORD] EQ OPTYP"HOP"
  222. THEN
  223. BEGIN
  224. OPL$TXT0[0] = "HOP:";
  225. END
  226. ELSE IF OC$TYPE[OCBORD] EQ OPTYP"NOP"
  227. THEN
  228. BEGIN
  229. OPL$TXT0[0] = "NOP:";
  230. END
  231. ELSE
  232. BEGIN
  233. OPL$TXT0[0] = "DOP:";
  234. END
  235.  
  236. TN$NAME[0] = OC$TNAM[OCBORD];
  237. CNST1 = 0;
  238. CNST2 = 24;
  239. CNST3 = 42;
  240. SSBSBF(OPLINE,CNST1,CNST2,CNST3,TN);
  241. OPL$UNAM[0] = OC$UNAM[OCBORD];
  242. OPL$ACN[0] = XCDD(OC$ACN[OCBORD]); # CONVERT ACN TO CHARS #
  243. IF OCBORD EQ CSACNOP # IF CONTROL OP #
  244. THEN
  245. OPL$CTL[0] = ",AUTO";
  246. ELSE
  247. OPL$CTL[0] = " ";
  248.  
  249. SSTAQE(P<CNQ>,WCBUF[1],ABH[1],OPLINE[0]);
  250. END
  251.  
  252. END
  253.  
  254. WCB$WC[1] = 3;
  255. WCB$IAF[1] = TRUE;
  256. SSTAQE(P<CNQ>,WCBUF[1],ABH[1],BLANKLINE[0]);
  257.  
  258. END # CSSAIN #
  259.  
  260. TERM
cdc/nos2.source/nam5871/cssain.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator