User Tools

Site Tools


cdc:nos2.source:nam5871:cslsit

CSLSIT

Table Of Contents

  • [00007] PRGM CSLSIT
  • [00008] CSLSIT - SEQUENCE INITIALIZATION TASKS.
  • [00012] SEQUENCE INITIALIZATION TASKS.
  • [00039] PROC CSIBPT
  • [00040] PROC CSIIAM
  • [00041] PROC CSIIMT
  • [00042] PROC CSIBWD
  • [00043] PROC CSIBSW
  • [00044] PROC CSIBXT
  • [00045] PROC CSIBRT
  • [00046] PROC CSIBOF
  • [00047] PROC CSIBOT
  • [00049] PROC CSICCC
  • [00050] PROC MESSAGE
  • [00051] PROC NETDBG
  • [00052] PROC NETON
  • [00053] PROC NETREL
  • [00054] PROC NETSETP
  • [00055] PROC NETSETF
  • [00056] PROC RECALL
  • [00057] PROC SSCUTD
  • [00058] PROC SSSPES
  • [00059] PROC SSTAQE

Source Code

CSLSIT.txt
  1. *DECK CSLSIT
  2. OVERLAY(77,00)
  3. USETEXT TEXTSS
  4. USETEXT TEXTCS
  5. USETEXT TXTSMCS
  6. USETEXT TXTAPSS
  7. PRGM CSLSIT;
  8. # TITLE CSLSIT - SEQUENCE INITIALIZATION TASKS. #
  9.  
  10. BEGIN # CSLSIT #
  11. #
  12. ** CSLSIT - SEQUENCE INITIALIZATION TASKS.
  13. *
  14. * S. H. FISCHER. 81/08/26.
  15. * D. G. DEPEW. 81/11/18.
  16. * C. J. BRION. 82/06/17.
  17. *
  18. * THIS ROUTINE IS PART OF THE INITIALIZATION PROCESS FOR CS.
  19. * ITS JOB IS TO PERFORM OR CALL ROUTINES TO PERFORM ALL THE
  20. * TASKS THAT MUST BE DONE BEFORE STARTING NORMAL OPERATIONS
  21. * OF CS BY ENTERING THE MAIN LOOP.
  22. *
  23. * PRGM CSLSIT
  24. *
  25. * ENTRY NONE.
  26. *
  27. * EXIT PROGRAM READY TO START NORMAL OPERATIONS.
  28. *
  29. #
  30.  
  31.  
  32.  
  33. #
  34. **** PRGM CSLSIT - XREF LIST.
  35. #
  36.  
  37. XREF
  38. BEGIN
  39. PROC CSIBPT; # BUILD DEBUG AID POINTER TABLE #
  40. PROC CSIIAM; # INITIALIZE AIP MONITOR #
  41. PROC CSIIMT; # INITIALIZE MANAGED TABLES #
  42. PROC CSIBWD; # BUILD WORKLIST DEFINITIONS #
  43. PROC CSIBSW; # BUILD STATUS WORKLIST DEFINITIONS #
  44. PROC CSIBXT; # BUILD NCF CROSS REFERENCE TABLE #
  45. PROC CSIBRT; # BUILD ROLLOUT TABLE #
  46. PROC CSIBOF; # BUILD OVERLAY FILE #
  47. PROC CSIBOT; # BUILD OPERATOR CONTROL BLOCKS #
  48. # AND THE ACN LIST #
  49. PROC CSICCC; # CRACK CONTROL CARD #
  50. PROC MESSAGE; # ISSUE DAYFILE MESSAGE (MACREL) #
  51. PROC NETDBG;
  52. PROC NETON; # CONNECT TO NETWORK #
  53. PROC NETREL;
  54. PROC NETSETP; # PARALLEL MODE CONTROL #
  55. PROC NETSETF;
  56. PROC RECALL; # PLACE JOB IN RECALL (MACREL) #
  57. PROC SSCUTD; # SS- UPDATE TIME OF DAY #
  58. PROC SSSPES; # SS- PROGRAM EXECUTION SEQUENCER #
  59. PROC SSTAQE; # SS- ACCEPT QUEUE ENTRY #
  60. END
  61.  
  62. #
  63. ****
  64. #
  65.  
  66.  
  67. DEF NR$NAME # O"16220634000000000000" #; # NETREL NAME (NRF1) #
  68. DEF OPTION$ #0#; # DAYFILE MESSAGE OPTION #
  69.  
  70. STATUS NETON$ # NETON STATUS LIST #
  71. SUCCESS, # NETON SUCCESSFUL #
  72. UNAVAIL, # NAM UNAVAILABLE #
  73. DUPLICATE, # DUPLICATE CS NETON ATTEMPT #
  74. DISABLED; # CS IS DISABLED #
  75.  
  76.  
  77. ITEM NSTAT S:NETON$; # NETON STATUS #
  78. ITEM GETFET I; # FLUSH INDICATOR #
  79. ITEM STATIS; # STATUS RETURNED BY NETDBG #
  80. ITEM DNFETADR; # *ZZZZZDN* FET ADDRESS #
  81. ITEM I; # LOOP INDUCTION VARIABLE #
  82.  
  83.  
  84. ARRAY TRYMSG [00:00] S(3);
  85. BEGIN
  86. ITEM TR$TEXT C(00,00,20) = ["CS ATTEMPTING NETON."];
  87. ITEM TR$ZERO U(02,00,60) = [0];
  88. END
  89.  
  90. ARRAY DUPMSG [00:00] S(3);
  91. BEGIN
  92. ITEM DP$TEXT C(00,00,20) = ["CS DUPLICATE NETON."];
  93. ITEM DP$ZERO U(02,00,60) = [0];
  94. END
  95.  
  96. ARRAY DISMSG [00:00] S(2);
  97. BEGIN
  98. ITEM DI$TEXT C(00,00,15) = ["CS DISABLED."];
  99. ITEM DI$ZERO U(01,30,30) = [0];
  100. END
  101.  
  102. ARRAY OKMSG [00:00] S(3);
  103. BEGIN
  104. ITEM OK$TEXT C(00,00,20) = ["CS NETON SUCCESSFUL."];
  105. ITEM OK$ZERO U(02,00,60) = [0];
  106. END
  107.  
  108.  
  109. P<ABH> = LOC(ABHBUF);
  110. P<CSSM> = LOC(MSGBUF);
  111. P<APSM> = LOC(MSGBUF);
  112.  
  113. P<SSITRQ> = LOC(P<TRQ>);
  114. P<SSITRQL> = LOC(TRQL);
  115. SSCRTRW = CSWDF"SCRTR";
  116. CTM$FTIME[0] = O"7777 7777";
  117.  
  118. TXTALEN = MSBFAPL + 1; # SET TEXT LENGTH OF BLOCK CS CAN ACCEPT #
  119.  
  120. SSCUTD; # UPDATE TIME OF DAY #
  121.  
  122. CSIBPT; # BUILD DEBUG AID POINTER TABLE #
  123.  
  124. CSIIMT; # INITIALIZE MANAGED TABLES #
  125.  
  126. CSIBWD; # BUILD WORKLIST DEFINITIONS #
  127.  
  128. CSIBSW; # BUILD WORKLIST DEFINITIONS #
  129.  
  130. CSICCC; # CRACK THE CONTROL CARD #
  131.  
  132. CSIIAM; # INITIALIZE AIP MONITOR #
  133.  
  134. CSIBXT; # BUILD NCF CROSS REFERENCE TABLE #
  135.  
  136. CSIBOT; # BUILD OPERATOR TABLES #
  137.  
  138. CSIBOF; # BUILD OVERLAY FILE #
  139.  
  140. CSIBRT; # BUILD ROLLOUT TABLE #
  141.  
  142.  
  143. CSSTATE = FALSE; # EQUALS SHUTDOWN NOT IN PROGRESS #
  144.  
  145.  
  146. IF MC NQ 0
  147. THEN
  148. NETREL(NR$NAME,0,0); # INITIALIZE *ZZZZZDN* FILE #
  149.  
  150. GETFET = 0;
  151. NETSETF(GETFET,DNFETADR); # GET *ZZZZZDN* GET ADDRESS #
  152. TPA$ADDR[1] = DNFETADR; # SAVE THE FET ADDRESS #
  153.  
  154.  
  155. MESSAGE (TRYMSG, OPTION$);
  156. FOR NSTAT = S"UNAVAIL"
  157. WHILE NSTAT EQ S"UNAVAIL"
  158. DO # LOOP UNTIL NAM IS AVAILABLE #
  159. BEGIN
  160. RECALL (0);
  161. NETON ("CS", NSUP, NSTAT, MINACN$, MAXACN$); # CONNECT TO NW #
  162. END
  163.  
  164.  
  165. $BEGIN
  166. FOR I=1 STEP 1 UNTIL NSVT$
  167. DO # CLEAR THE STATISTICS VALUE TABLE #
  168. BEGIN
  169. SVT$VAL[I] = 0;
  170. END
  171. $END
  172.  
  173.  
  174. IF NSTAT EQ S"DUPLICATE"
  175. THEN # CS ALREADY NETTED ON #
  176. BEGIN
  177. MESSAGE (DUPMSG, OPTION$);
  178. STOP;
  179. END
  180. ELSE IF NSTAT EQ S"DISABLED"
  181. THEN # CS IS DISABLED #
  182. BEGIN
  183. MESSAGE (DISMSG, OPTION$);
  184. STOP;
  185. END
  186.  
  187. NET$ONF = TRUE; # SET NET ON FLAG #
  188. NETDBG(FALSE,FALSE,STATIS); # TURN TRACE OFF #
  189. MESSAGE (OKMSG, OPTION$);
  190.  
  191. NETSETP(0); # BEGIN PARALLEL MODE #
  192.  
  193.  
  194. #
  195. * FINALLY, ISSUE THE LST/HDX AND DC/TRU SUPERVISORY MESSAGES. THE
  196. * MESSAGES CAN HAVE IDENTICAL ABH'S. SET UP ABH FIRST, THEN SM
  197. * BODIES, THEN ISSUE MESSAGES.
  198. #
  199. ABHWORD[1] = 0; # SET UP ABH WORD #
  200. ABHABT[1] = APPCMD;
  201. ABHACT[1] = CT60TRANS;
  202. ABHTLC[1] = 1;
  203.  
  204. SPMSG0[1] = 0; # SET UP AND ISSUE DC/TRU SM #
  205. PFCSFC[1] = DCTRU;
  206. SSTAQE (P<OTQ>, 3, ABH[1], APSM[1]);
  207.  
  208. PFCSFC[1] = LSTHDX; # SET UP AND ISSUE LST/HDX SM #
  209. LSTDIS[1] = TRUE; # INPUT INITIALLY DISABLED FOR ALL ACN'S #
  210. SSTAQE (P<OTQ>, 3, ABH[1], APSM[1]);
  211.  
  212.  
  213. SSSPES; # PROGRAM EXECUTION SEQUENCER #
  214.  
  215.  
  216. END # CSLSIT #
  217. TERM
cdc/nos2.source/nam5871/cslsit.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator