Table of Contents

LISTLID

Table Of Contents

  • [00002] LISTLID - LIST LID TABLE.
  • [00012] LIST LID TABLE.
  • [00091] DEFINITIONS.
  • [00173] MAIN PROGRAM.
  • [00175] LIST LID TABLE.
  • [00207] SUBROUTINES.
  • [00209] FPL - FORMAT AND PRINT LID LINE (FORMAT 2).
  • [00256] LDP - PROCESS LID(S) FOR PIDS (FORMAT 2).
  • [00341] PLA - PROCESS LID ATTRIBUTES (FORMAT 2).
  • [00375] PLD - PRINT LID TABLE DESCRIPTION.
  • [00465] PLL - PROCESS LID LINE (FORMAT 1).
  • [00541] PNS - PROCESS NETWORK STATUS (FORMATS 1 AND 2).
  • [00679] PPD - PRINT PID TABLE DESCRIPTION.
  • [00756] PPL - PROCESS PID LINE (FORMAT 2).
  • [00841] BUFFERS.
  • [00847] PRESET.
  • [00849] PRS - PRESET.

Source Code

LISTLID.txt
  1. IDENT LISTLID,FWA
  2. TITLE LISTLID - LIST LID TABLE.
  3. ABS
  4. SST
  5. ENTRY LISTLID
  6. ENTRY RFL=
  7. ENTRY SSJ=
  8. SYSCOM B1
  9. *COMMENT LISTLID - LIST LID TABLE.
  10. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1992.
  11. SPACE 4,10
  12. *** LISTLID - LIST LID TABLE.
  13. *
  14. * K. A. KRIEG 83/10/04.
  15. SPACE 4,10
  16. *** *LISTLID* IS A UTILITY TO LIST THE CONFIGURATION OF
  17. * THE LID TABLE (LDT).
  18. SPACE 4,10
  19. *** COMMAND FORMAT.
  20. *
  21. * LISTLID,P1,P2...PN.
  22. *
  23. * PARAMETERS ARE ORDER-INDEPENDENT. P1 THROUGH PN
  24. * ARE THE PARAMETERS AS FOLLOWS:
  25. *
  26. * LID=XXX PRINT OUT THE ATTRIBUTES OF PIDS IN
  27. * OR WHICH LID XXX EXISTS, IS ENABLED AND
  28. * ST=XXX LISTABLE. IF THE LID OR ST KEYWORD IS
  29. * OR SPECIFIED, A LID VALUE XXX MUST ALSO BE
  30. * OMITTED SPECIFIED. IF THE LID OR ST KEYWORD IS
  31. * OMITTED, THE DEFAULT IS TO PRINT OUT ALL
  32. * LISTABLE LIDS. EITHER LID OR ST MAY BE
  33. * SPECIFIED, BUT NOT BOTH.
  34. *
  35. * L=LFN OUTPUT IS TO BE WRITTEN TO FILE LFN.
  36. * OR IF OMITTED, THE DEFAULT IS *OUTPUT*.
  37. * OMITTED
  38. *
  39. * PID=YYY PRINT OUT THE ATTRIBUTES OF ALL LIDS
  40. * OR UNDER THE SPECIFIED PID YYY. IF LID=XXX
  41. * PID IS ALSO SPECIFIED, ONLY LID XXX UNDER YYY
  42. * OR WILL BE PRINTED. IF YYY IS OMITTED,
  43. * OMITTED THE DEFAULT IS TO PRINT ALL PIDS. IF
  44. * PID IS OMITTED, THE LID KEYWORD VALUE
  45. * DETERMINES WHAT IS PRINTED.
  46. SPACE 4,10
  47. *** DAYFILE MESSAGES.
  48. *
  49. *
  50. * * LID TABLE EMPTY.*
  51. * THE LID TABLE READ FROM CMR WAS EMPTY.
  52. *
  53. * * LID - XXX DOES NOT EXIST IN THE LID TABLE.*
  54. * THE LID SPECIFIED COULD NOT BE FOUND
  55. * IN THE LID TABLE OR THE NLIST BIT
  56. * IS SET (LISTING OF THE SPECIFIED
  57. * LID NOT ALLOWED) OR THE LID WAS A
  58. * STORE AND FORWARD HOST LID (LISTING
  59. * OF THIS TYPE OF LID NOT ALLOWED).
  60. *
  61. * * LID=XXX OR ST=XXX IS REQUIRED.*
  62. * THE LID OR ST PARAMETER WAS SPECIFIED
  63. * WITH NO VALUE.
  64. *
  65. * * LISTLID COMMAND ERROR.*
  66. * AN INCORRECT ARGUMENT WAS DETECTED ON THE
  67. * COMMAND.
  68. *
  69. * * NO LIDS FOUND.*
  70. * EITHER THE LID SPECIFIED WAS NOT LISTABLE OR THERE
  71. * WERE NO LISTABLE LIDS FOUND FOR A GIVEN PID.
  72. *
  73. * * PID - YYY DOES NOT EXIST IN THE LID TABLE.*
  74. * THE PID SPECIFIED COULD NOT BE FOUND IN
  75. * THE LID TABLE.
  76. *
  77. * * SPECIFY EXACTLY 3 CHARACTERS ON PID KEYWORD.*
  78. * EXACTLY THREE CHARACTERS ARE ALLOWED ON
  79. * THE PID KEYWORD.
  80. *
  81. * * SPECIFY EXACTLY 3 CHARACTERS ON LID KEYWORD.*
  82. * EXACTLY THREE CHARACTERS ARE ALLOWED ON
  83. * THE LID OR ST KEYWORD.
  84. SPACE 4,10
  85. * COMMON DECKS.
  86.  
  87. *CALL COMCCMD
  88. *CALL COMCMAC
  89. *CALL COMSSFM
  90. *CALL COMSSSJ
  91. TITLE DEFINITIONS.
  92. SPACE 4,10
  93. **** ASSEMBLY CONSTANTS.
  94.  
  95. HDLN EQU 2 NUMBER OF PRINTED LINES IN HEADER
  96. OBUFL EQU 101B LENGTH OF OUTPUT BUFFER
  97. WBUFL EQU 5 LENGTH OF WORKING BUFFER
  98. TRLN EQU 6 NUMBER OF PRINTED LINES IN TRAILER
  99.  
  100. ****
  101. SPACE 4,10
  102. ORG 110B
  103. FWA BSS 0
  104. SPACE 4,10
  105. * SSJ= PARAMETER BLOCK.
  106.  
  107. SSJ= BSS 0
  108. BSSZ SSJL
  109.  
  110. SPACE 4,10
  111. * FET DEFINITIONS.
  112.  
  113. LIDF FILEB LIDTAB,MXLDT,FET=5 LID TABLE
  114.  
  115. O BSS 0
  116. OUTPUT FILEB OBUF,OBUFL,FET=10 OUTPUT FILE
  117. SPACE 4,10
  118. * HEADERS AND TRAILERS FOR OUTPUT LISTINGS. IF EITHER THE
  119. * HEADER OR TRAILER INFORMATION IS CHANGED IN THE FUTURE SO
  120. * MORE OR FEWER LINES ARE REQUIRED, ENSURE THAT *HDLN* AND/OR
  121. * *TRLN* ARE UPDATED APPROPRIATELY SO THE CORRECT PAGE LENGTH
  122. * CAN BE CALCULATED.
  123.  
  124. HDR1 DATA 8L1
  125. DATA 8L
  126. HDR1L EQU *-HDR1
  127. HDR2 DATA 47L LID MAINFRAME ATTRIBUTE NETWORK
  128. DATA 8L
  129. HDR2L EQU *-HDR2
  130. HDR3 DATA 50H PID LID MAINFRAME TYPE ATTRIBUTE
  131. DATA 25L RHF NAM SSF
  132. DATA 8L
  133. HDR3L EQU *-HDR3
  134. HDR4 DATA 8L
  135. DATA 8L
  136. DATA 50H ATTRIBUTES: H - HOST, L - LINKED, V - VALIDA
  137. DATA 14LTION REQUIRED,
  138. DATA 50H S - STORE FORWARD, B - LOOPBA
  139. DATA 8LCK.
  140. DATA 50H IN - PATH IN SERVICE, OUT - PATH
  141. DATA 16L OUT OF SERVICE,
  142. DATA 35L NA - NOT AVAILABLE.
  143. HDR4L EQU *-HDR4
  144. SPACE 4,10
  145. * CONSTANT DATA.
  146.  
  147. BLKS DATA 10H WORD OF BLANKS
  148. DATA 8L WORD OF BLANKS WITH ZERO BYTE
  149. SPACE 4,10
  150. * STORAGE LOCATIONS.
  151.  
  152. CLLC CON 0 LINES AVAILABLE TO PRINT LIDS
  153. JPRD CON 0 JOB PRINT DENSITY
  154. LFST CON 0 LIST FILE STATUS OF OUTPUT
  155. LIDV CON 0 LID VALUE
  156. LLFD CON 0 INDICATES IF LISTABLE LID FOUND
  157. NLIP CON 0 NUMBER OF LID SLOTS IN PID
  158. PAGL CON 0 JOB PAGE LENGTH
  159. PDFD CON 0 PID FOUND FLAG
  160. PIDA CON 0 FIRST WORD OF PID DATA
  161. PIDB CON 0 SECOND WORD OF PID DATA
  162. PIDV CON 0 PID VALUE
  163. PDPF CON 0 PID LINE PRINTED FLAG
  164. STVL CON 0 ST VALUE
  165. WBUF BSSZ 8 WORKING BUFFER
  166. SPACE 4,10
  167. * DAYFILE MESSAGES.
  168.  
  169. MSG2 DATA C* LID TABLE EMPTY.*
  170. MSG3 DATA C* NO LIDS FOUND.*
  171. MSG4 DATA C* PID - DOES NOT EXIST IN THE LID TABLE.*
  172. MSG5 DATA C* LID - DOES NOT EXIST IN THE LID TABLE.*
  173. TITLE MAIN PROGRAM.
  174. LISTLID SPACE 4,10
  175. ** LISTLID - LIST LID TABLE.
  176. *
  177. * EXIT LID TABLE LISTED IF SUCCESSFUL.
  178. *
  179. * USES X - 0, 1, 7.
  180. * A - 1.
  181. *
  182. * CALLS PLD, PPD, PRS.
  183. *
  184. * MACROS ENDRUN, GETLIDT, MESSAGE, WRITEC, WRITEW.
  185.  
  186.  
  187. LISTLID RJ PRS PRESET
  188. GETLIDT LIDF GET LID TABLE INTO FWA OF PRESET
  189. SA1 LIDTAB GET NUMBER OF PIDS IN TABLE
  190. MX0 -12
  191. BX7 -X0*X1
  192. NZ X7,LST1 IF TABLE NOT EMPTY
  193. MESSAGE MSG2 * LID TABLE EMPTY.*
  194. EQ LST4 EXIT
  195.  
  196. LST1 SA1 LFST
  197. ZR X1,LST2 IF TERMINAL FILE
  198. WRITEC O,JPRD WRITE PRINT DENSITY
  199. WRITEW O,HDR1,HDR1L WRITE INITIAL PAGE EJECT
  200. LST2 SA1 PIDV
  201. ZR X1,LST3 IF *PID* KEYWORD NOT SPECIFIED
  202. RJ PPD PRINT LID TABLE (FORMAT 2)
  203. EQ LST4 EXIT
  204.  
  205. LST3 RJ PLD PRINT LID TABLE (FORMAT 1)
  206. LST4 ENDRUN
  207. TITLE SUBROUTINES.
  208. FPL SPACE 4,15
  209. ** FPL - FORMAT AND PRINT LID LINE (FORMAT 2).
  210. *
  211. * ENTRY (X5) = LID WORD LEFT JUSTIFIED TO NLIST BIT.
  212. * (X1) = LID.
  213. *
  214. * EXIT LID LINE WRITTEN TO OUTPUT FILE.
  215. *
  216. * USES X - 3, 6, 7.
  217. * A - 3, 6, 7.
  218. * B - 7.
  219. *
  220. * CALLS PLA, SFN.
  221. *
  222. * MACROS WRITEH, WRITEW.
  223.  
  224.  
  225. FPL SUBR ENTRY/EXIT
  226. RJ SFN SPACE FILL LID
  227. LX6 -18
  228. SA3 BLKS
  229. LX5 59-34-59+31 POSITION LID ATTRIBUTES FOR *PLA*
  230. BX7 X3
  231. SA7 WBUF STORE BLANK WORD
  232. SA6 A7+B1 STORE BLANK-FILLED LID
  233. SA7 A6+B1 STORE BLANK WORD
  234. SA7 A7+B1 STORE BLANK WORD
  235. RJ PLA PROCESS LID ATTRIBUTES
  236. SA3 LFST
  237. ZR X3,FPL1 IF TERMINAL FILE
  238. SA3 CLLC
  239. SX7 X3-1
  240. SB7 X3
  241. LE B7,B0,FPL2 IF NO ROOM TO PRINT LID LINE
  242. SA7 A3
  243. FPL1 WRITEH O,WBUF,5
  244. SX7 B1+ INDICATE AT LEAST ONE LID PROCESSED
  245. SA7 LLFD
  246. EQ FPLX RETURN
  247.  
  248. FPL2 WRITEW O,HDR4,HDR4L WRITE PID TRAILER
  249. WRITEW O,HDR1,HDR1L
  250. WRITEW O,HDR3,HDR3L
  251. SA3 PAGL SAVE NUMBER OF LINES LEFT ON PAGE
  252. SX7 X3-1
  253. SA7 CLLC
  254. EQ FPL1 PRINT LID LINE
  255. LDP SPACE 4,15
  256. ** LDP - PROCESS LID(S) FOR PIDS (FORMAT 2).
  257. *
  258. * ENTRY (A5) = ADDRESS OF PID CURRENTLY BEING PROCESSED.
  259. * (WBUF) = PID LINE TO BE PRINTED WHEN THE FIRST
  260. * LISTABLE LID IS ENCOUNTERED.
  261. *
  262. * EXIT ALL APPROPRIATE LIDS PROCESSED FOR GIVEN PID.
  263. *
  264. * USES X - 0, 1, 2, 5, 6, 7.
  265. * A - 0, 1, 2, 5, 6, 7.
  266. * B - 7.
  267. *
  268. * CALLS FPL.
  269. *
  270. * MACROS WRITEH, WRITEW.
  271.  
  272.  
  273. LDP SUBR ENTRY/EXIT
  274. SA2 A5+2 OFFSET TO NUMBER OF LID SLOTS
  275. MX0 -12
  276. BX6 -X0*X2
  277. SA6 NLIP
  278. SA0 A5 SAVE ADDRESS OF CURRENT PID
  279. SA5 A2 FWA-1 OF LID ENTRIES
  280. BX6 X6-X6 CLEAR PID LINE PRINTED FLAG
  281. SA6 PDPF
  282.  
  283. * PROCESS NEXT LID ENTRY.
  284.  
  285. LDP1 SA5 A5+B1 READ NEXT LID ENTRY
  286. MX0 18
  287. BX7 X0*X5
  288. ZR X7,LDP6 IF EMPTY LID SLOT
  289. SA2 LIDV
  290. ZR X2,LDP2 IF NO LID SPECIFIED
  291. BX7 X2-X7
  292. NZ X7,LDP6 IF LID DOES NOT MATCH
  293. LDP2 LX5 59-31
  294. NG X5,LDP6 IF LID NOT LISTABLE
  295.  
  296. * PRINT THE PID LINE WHEN THE FIRST LISTABLE LID IS
  297. * ENCOUNTERED.
  298.  
  299. SA1 PDPF
  300. NZ X1,LDP5 IF PID LINE ALREADY PRINTED
  301. SX7 B1 INDICATE PID LINE PRINTED
  302. SA7 A1
  303. SA1 LFST
  304. ZR X1,LDP4 IF TERMINAL FILE
  305. SA1 CLLC
  306. SX7 X1-2
  307. NG X7,LDP3 IF NO ROOM TO PRINT PID AND ONE LID
  308. SX7 X1-1 DECREMENT NUMBER OF PAGE LINES REMAINING
  309. SA7 A1+
  310. EQ LDP4 WRITE PID LINE
  311.  
  312. LDP3 WRITEW O,HDR4,HDR4L WRITE ATTRIBUTE TRAILER
  313. WRITEW O,HDR1,HDR1L
  314. WRITEW O,HDR3,HDR3L WRITE HEADER
  315. SA1 PAGL SAVE LINES REMAINING ON PAGE
  316. SX7 X1-1
  317. SA7 CLLC
  318. LDP4 WRITEH O,WBUF,8 WRITE PID LINE
  319.  
  320. * FORMAT AND PRINT THE LID.
  321.  
  322. LDP5 SA1 A5 GET LID
  323. MX0 18
  324. BX1 X0*X1
  325. RJ FPL FORMAT AND PRINT LID LINE
  326. SA1 LIDV
  327. NZ X1,LDP7 IF LID SPECIFIED
  328.  
  329. * DECREMENT LID SLOT COUNT AND PROCESS NEXT LID.
  330.  
  331. LDP6 SA1 NLIP DECREMENT LID SLOT COUNT
  332. SX7 X1-1
  333. SB7 X7
  334. LE B7,B0,LDP7 IF ALL LID SLOTS PROCESSED
  335. SA7 A1
  336. EQ LDP1 PROCESS NEXT LID ENTRY
  337.  
  338. LDP7 SA5 A0+ RESTORE ADDRESS OF PID
  339. EQ LDPX RETURN
  340. PLA SPACE 4,10
  341. ** PLA - PROCESS LID ATTRIBUTES (FORMAT 2).
  342. *
  343. * ENTRY (X5) = LID ATTRIBUTES (LEFT JUSTIFIED).
  344. * (A7) = WORKING BUFFER - 1 FOR LID ATTRIBUTES.
  345. *
  346. * EXIT (A6) = LID ATTRIBUTES STORED IN WORKING BUFFER.
  347. *
  348. * USES X - 0, 3, 6.
  349. * A - 3, 6.
  350. * B - 2, 7.
  351.  
  352.  
  353. PLA SUBR ENTRY/EXIT
  354. MX0 3
  355. BX3 X0*X5 GET LID ATTRIBUTES
  356. LX3 3
  357. SB7 X3
  358. SA3 BLKS+1
  359. ZR B7,PLA1 IF NO ATTRIBUTES
  360. SA3 PLAA
  361. EQ B7,B1,PLA1 IF LOOPBACK BIT SET
  362. SB2 4
  363. SA3 PLAB
  364. EQ B7,B2,PLA1 IF ONLY STORE AND FORWARD BIT SET
  365. SA3 PLAC
  366. PLA1 BX6 X3 STORE LID ATTRIBUTES
  367. SA6 A7+B1
  368. EQ PLAX RETURN
  369.  
  370.  
  371. PLAA VFD 60/8L B
  372. PLAB VFD 60/8L S
  373. PLAC VFD 60/8L SV
  374. PLD SPACE 4,15
  375. ** PLD - PRINT LID TABLE DESCRIPTION.
  376. *
  377. * ENTRY (LIDTAB) = LID TABLE.
  378. *
  379. * EXIT LID TABLE WRITTEN TO OUTPUT FILE.
  380. *
  381. * USES X - ALL.
  382. * A - 1, 2, 3, 5, 6, 7.
  383. * B - 6.
  384. *
  385. * CALLS PLL.
  386. *
  387. * MACROS MESSAGE, WRITER, WRITEW.
  388.  
  389.  
  390. PLD SUBR ENTRY/EXIT
  391. WRITEW O,HDR2,HDR2L
  392. SA1 LIDTAB+1 READ FIRST PID ENTRY
  393.  
  394. * PROCESS NEXT PID.
  395.  
  396. PLD1 SA2 LIDV GET LID TO MATCH
  397. BX7 X1 SAVE PID DATA
  398. SA7 PIDA
  399. SA1 A1+B1
  400. BX7 X1
  401. SA7 PIDB
  402. SA5 A1+B1 GET NUMBER OF LID SLOTS
  403. MX4 -12
  404. BX7 -X4*X5
  405. SB6 X7
  406.  
  407. * PROCESS NEXT LID.
  408.  
  409. PLD2 SA5 A5+B1 GET NEXT LID ENTRY
  410. MX4 18
  411. BX7 X4*X5
  412. ZR X7,PLD5 IF HOLE IN LID TABLE
  413. BX7 X7-X2
  414. ZR X2,PLD3 IF LISTING ALL LIDS
  415. NZ X7,PLD5 IF LID DOES NOT MATCH
  416.  
  417. * EITHER ALL LIDS ARE TO BE PROCESSED BY DEFAULT OR THE
  418. * SPECIFIED LID MATCHED AN LDT ENTRY.
  419.  
  420. PLD3 BX3 X5
  421. LX3 59-31
  422. NG X3,PLD4 IF LID NOT LISTABLE
  423. LX3 59-34-59+31
  424. PL X3,PLD3.1 IF LID IS NOT STORE AND FORWARD
  425. SA3 PIDA
  426. LX3 59-41
  427. NG X3,PLD4 IF LID IS HOST AND STORE AND FORWARD
  428. PLD3.1 SX7 B6
  429. SA7 NLIP
  430. RJ PLL LIST LID LINE
  431. SX7 B1+ INDICATE LID FOUND
  432. SA7 LLFD
  433. SA2 NLIP RESTORE NUMBER OF LID SLOTS
  434. SB6 X2
  435. SA2 LIDV
  436. PLD4 NZ X2,PLD6 IF NOT PROCESSING ALL LIDS
  437. PLD5 SB6 B6-B1
  438. GT B6,PLD2 IF MORE LIDS FOR PID
  439. SB6 B1 SET INDEX FOR NEXT PID ENTRY
  440. PLD6 SA3 PIDB
  441. MX4 -12
  442. BX7 -X4*X3
  443. ZR X7,PLD7 IF LAST PID
  444. SA1 A5+B6
  445. EQ PLD1 PROCESS NEXT PID ENTRY
  446.  
  447. PLD7 SA3 LLFD
  448. ZR X3,PLD8 IF NO LISTABLE LIDS FOUND
  449. WRITER O
  450. EQ PLDX RETURN
  451.  
  452. PLD8 ZR X2,PLD9 IF PROCESSING ALL LIDS
  453. SA3 MSG5 ADD NON-MATCHING LID TO MESSAGE
  454. LX2 18
  455. MX0 42
  456. BX3 X0*X3
  457. BX6 X3+X2
  458. SA6 A3+
  459. MESSAGE MSG5 * LID - XXX DOES NOT EXIST IN LID TABLE.*
  460. EQ PLDX RETURN
  461.  
  462. PLD9 MESSAGE MSG3 * NO LIDS FOUND.*
  463. EQ PLDX RETURN
  464. PLL SPACE 4,15
  465. ** PLL - PROCESS LID LINE (FORMAT 1).
  466. *
  467. * ENTRY (X5) = LID WORD.
  468. * (PIDA) = PID FIRST WORD (FROM LDT).
  469. * (PIDB) = PID SECOND WORD (FROM LDT).
  470. *
  471. * EXIT LID LINE WRITTEN TO OUTPUT FILE.
  472. *
  473. * USES X - 0, 1, 3, 4, 6, 7.
  474. * A - 1, 3, 4, 6, 7.
  475. *
  476. * CALLS PNS, SFN.
  477. *
  478. * MACROS WRITEH, WRITEW.
  479.  
  480.  
  481. PLL SUBR ENTRY/EXIT
  482. MX0 18 STORE LID IN WORKING BUFFER
  483. BX1 X0*X5
  484. RJ SFN
  485. LX6 -18
  486. SA6 WBUF
  487. SA1 PIDB STORE MAINFRAME DESCRIPTOR
  488. MX0 42
  489. BX1 X0*X1
  490. RJ SFN SPACE FILL NAME
  491. LX6 -6
  492. SA6 A6+B1
  493. SA3 PLLB PRESET DISABLED
  494. LX5 59-35
  495. PL X5,PLL1 IF LID DISABLED
  496. SA4 PIDA
  497. LX4 59-40
  498. PL X4,PLL1 IF PID DISABLED
  499. SA3 PLLD PRESET STORE AND FORWARD
  500. LX5 59-34-59+35
  501. NG X5,PLL1 IF STORE AND FORWARD BIT SET
  502. SA3 PLLE PRESET LOOPBACK
  503. LX5 59-32-59+34
  504. NG X5,PLL1 IF LOOPBACK BIT SET
  505. SA3 PLLA PRESET HOST
  506. SA1 PIDA
  507. LX1 59-41
  508. NG X1,PLL1 IF HOST PID
  509. SA3 PLLC SET LINKED
  510. PLL1 BX6 X3
  511. SA6 A6+B1 STORE FIRST WORD
  512. SA4 A3+B1
  513. BX6 X4
  514. SA6 A6+B1 STORE SECOND WORD
  515. RJ PNS PROCESS NETWORK STATUS
  516. SX7 WBUFL
  517. ZR X4,PLL1.1 IF SECOND NETWORK STATUS WORD IS ZERO
  518. SX7 WBUFL+1
  519. PLL1.1 SA7 WBUF+7 SAVE BUFFER LENGTH
  520. SA3 LFST
  521. ZR X3,PLL3 IF TERMINAL FILE
  522. SA3 CLLC
  523. SX7 X3-1
  524. NZ X7,PLL2 IF NO ROOM LEFT ON PAGE
  525. WRITEW O,HDR1,HDR1L PRINT OUTPUT FILE HEADERS
  526. WRITEW O,HDR2,HDR2L
  527. SA3 PAGL SAVE LINES REMAINING ON PAGE
  528. SX7 X3-1
  529. PLL2 SA7 CLLC
  530. PLL3 SA1 WBUF+7 RESTORE BUFFER LENGTH
  531. WRITEH O,WBUF,X1 WRITE LID LINE
  532. EQ PLLX RETURN
  533.  
  534.  
  535. PLLA DATA 20H HOST
  536. PLLB DATA 20H DISABLED
  537. PLLC DATA 20H LINKED
  538. PLLD DATA 20H STORE FORWARD
  539. PLLE DATA 20H LOOPBACK
  540. PNS SPACE 4,10
  541. ** PNS - PROCESS NETWORK STATUS (FORMATS 1 AND 2).
  542. *
  543. * ENTRY (A6+1) = ADDRESS TO STORE NETWORK STATUS.
  544. * (PIDA) = PID WORD, IF FORMAT 1.
  545. * (X5) = PID WORD, IF FORMAT 2.
  546. *
  547. * EXIT (X4) = SECOND NETWORK STATUS WORD, IF FORMAT 1.
  548. *
  549. * USES X - 0, 1, 3, 4, 6, 7.
  550. * A - 1, 3, 4, 6.
  551. * B - 2, 3, 5, 6, 7.
  552.  
  553.  
  554. PNS SUBR ENTRY/EXIT
  555. SA1 PIDV
  556. MX0 -4
  557. NZ X1,PNS4 IF PROCESSING FORMAT 2
  558. SA3 PIDA GET PID WORD
  559.  
  560. * PROCESS NETWORK STATUS FOR FORMAT 1.
  561.  
  562. SB2 B0
  563. BX7 -X0*X3
  564. SB3 X7
  565. NE B3,B1,PNS1 IF NAM NOT IN SERVICE
  566. SB2 B2+1 SET NAM IN SERVICE
  567. PNS1 LX3 -4
  568. BX7 -X0*X3
  569. SB3 X7
  570. NE B3,B1,PNS2 IF RHF NOT IN SERVICE
  571. SB2 B2+2 SET RHF IN SERVICE
  572. PNS2 LX3 -4
  573. BX7 -X0*X3
  574. SB3 X7
  575. NE B3,B1,PNS3 IF SSF NOT IN SERVICE
  576. SB2 B2+4 SET SSF IN SERVICE
  577. PNS3 SX3 B2
  578. LX3 1
  579. SA3 PNSA+X3 STORE NETWORK STATUS
  580. BX6 X3
  581. SA6 A6+B1
  582. SA4 A3+B1
  583. BX6 X4
  584. SA6 A6+B1
  585. EQ PNSX RETURN
  586.  
  587. * PROCESS NETWORK STATUS FOR FORMAT 2.
  588.  
  589. PNS4 BX2 X5
  590. LX2 59-40
  591. PL X2,PNS8 IF PID DISABLED
  592.  
  593. * PROCESS *NAM* STATUS.
  594.  
  595. BX2 -X0*X5 NAM STATUS
  596. SB6 X2+
  597. LX2 59-3
  598. LE B6,B1,PNS5 IF NOT AVAILABLE OR IN SERVICE
  599. ERRNZ /NTS/NAV ADJUST CODE IF VALUE CHANGES
  600. ERRNZ /NTS/ISV-1 ADJUST CODE IF VALUE CHANGES
  601. SB6 3
  602. NG X2,PNS5 IF DISABLED
  603. ERRNZ /NTS/DAB-10B ADJUST CODE IF VALUE CHANGES
  604. SB6 2 SET OUT
  605.  
  606. * PROCESS *RHF* STATUS.
  607.  
  608. PNS5 LX5 -4
  609. BX2 -X0*X5 RHF STATUS
  610. SB5 X2
  611. LX2 59-3
  612. LE B5,B1,PNS6 IF NOT AVAILABLE OR IN SERVICE
  613. SB5 3
  614. NG X2,PNS6 IF DISABLED
  615. SB5 2 SET OUT
  616.  
  617. * PROCESS *SSF* STATUS.
  618.  
  619. PNS6 LX5 -4
  620. BX2 -X0*X5 SSF STATUS
  621. SB7 X2
  622. LX2 59-3
  623. LE B7,B1,PNS7 IF NOT AVAILABLE OR IN SERVICE
  624. SB7 3
  625. NG X2,PNS7 IF DISABLED
  626. SB7 2 SET OUT
  627.  
  628. * WRITE STATUS OF NETWORKS TO WORKING BUFFER.
  629.  
  630. PNS7 SA1 PNSB+B5 SET RHF STATUS
  631. BX6 X1
  632. SA6 A6+B1
  633. SA1 PNSB+B6 SET NAM STATUS
  634. BX6 X1
  635. SA6 A6+B1
  636. SA1 PNSB+B7 SET SSF STATUS
  637. BX6 X1
  638. SA6 A6+B1
  639. EQ PNS9 SET END OF LINE
  640.  
  641. PNS8 SA1 PNSC SET --- FOR NETWORK STATUS
  642. BX6 X1
  643. SA6 A6+B1
  644. SA6 A6+B1
  645. SA6 A6+B1
  646. PNS9 MX0 48
  647. BX6 X0*X1
  648. SA6 A6 INSURE END OF LINE
  649. EQ PNSX RETURN
  650.  
  651. * THIS TABLE MUST REMAIN IN THIS ORDER.
  652. * NETWORK STATUS FOR FORMAT 1.
  653.  
  654. PNSA BSS 0
  655. DATA 14LNONE AVAILABLE
  656. DATA 3LNAM
  657. DATA 0
  658. DATA 3LRHF
  659. DATA 0
  660. DATA 8LNAM, RHF
  661. DATA 0
  662. DATA 3LSSF
  663. DATA 0
  664. DATA 8LNAM, SSF
  665. DATA 0
  666. DATA 8LRHF, SSF
  667. DATA 0
  668. DATA 13LNAM, RHF, SSF
  669.  
  670. * NETWORK STATUS FOR FORMAT 2.
  671.  
  672. PNSB BSS 0
  673. DATA 10H NA
  674. DATA 10H IN
  675. DATA 10H OUT
  676. DATA 10HDISABLED
  677. PNSC DATA 10H ---
  678. PPD SPACE 4,15
  679. ** PPD - PRINT PID TABLE DESCRIPTION.
  680. *
  681. * ENTRY (LIDTAB) = LID TABLE.
  682. * PID SPECIFIED ON COMMAND.
  683. *
  684. * EXIT LID TABLE WRITTEN TO OUTPUT FILE.
  685. *
  686. * USES X - 0, 1, 2, 3, 5, 6, 7.
  687. * A - 1, 2, 3, 5, 6, 7.
  688. * B - 2.
  689. *
  690. * CALLS LDP, PPL.
  691. *
  692. * MACROS MESSAGE, WRITER, WRITEW.
  693.  
  694.  
  695. PPD SUBR ENTRY/EXIT
  696. WRITEW O,HDR3,HDR3L
  697. SA5 LIDTAB+1
  698.  
  699. * PROCESS NEXT PID.
  700.  
  701. PPD1 SA2 PIDV USER-SPECIFIED PID VALUE
  702. MX0 18
  703. BX2 X0*X2
  704. ZR X2,PPD2 IF ALL PIDS TO BE PROCESSED
  705. BX1 X0*X5
  706. BX7 X1-X2
  707. SA7 PDFD SAVE PID FOUND FLAG
  708. NZ X7,PPD3 IF PID DOES NOT MATCH
  709.  
  710. * EITHER ALL PIDS ARE TO BE PROCESSED BY DEFAULT OR
  711. * THE SPECIFIED PID MATCHED AN LDT ENTRY.
  712.  
  713. PPD2 RJ PPL PROCESS PID LINE
  714. RJ LDP PROCESS LID(S) FOR PID
  715. SA1 PIDV
  716. MX0 18
  717. BX1 X0*X1
  718. NZ X1,PPD5 IF PID WAS SPECIFIED
  719.  
  720. * DETERMINE IF THERE ARE MORE PIDS TO PROCESS.
  721.  
  722. PPD3 SA2 A5+B1 GET OFFSET TO NEXT PID
  723. MX0 -12
  724. BX2 -X0*X2
  725. ZR X2,PPD4 IF NO MORE PIDS
  726. SB2 X2
  727. SA5 A5+B2 NEXT PID ADDRESS
  728. EQ PPD1 PROCESS NEXT PID ENTRY
  729.  
  730. * ALL APPROPRIATE PID PROCESSING COMPLETE.
  731.  
  732. PPD4 SA1 PIDV
  733. MX0 18
  734. BX1 X0*X1
  735. ZR X1,PPD5 IF PID WAS NOT SPECIFIED
  736. SA2 PDFD
  737. ZR X2,PPD5 IF SPECIFIED PID FOUND IN LDT
  738. SA3 MSG4
  739. LX1 18 POSITION PID
  740. MX0 42
  741. BX3 X0*X3
  742. BX6 X1+X3 MERGE PID IN MESSAGE
  743. SA6 A3+
  744. MESSAGE MSG4 * PID - XXX DOES NOT EXIST IN LDT.*
  745. EQ PPDX RETURN
  746.  
  747. PPD5 SA1 LLFD
  748. NZ X1,PPD6 IF LISTABLE LID WAS FOUND
  749. MESSAGE MSG3 * NO LIDS FOUND.*
  750. EQ PPDX RETURN
  751.  
  752. PPD6 WRITEW O,HDR4,HDR4L WRITE PID TRAILER INFORMATION
  753. WRITER O
  754. EQ PPDX RETURN
  755. PPL SPACE 4,15
  756. ** PPL - PROCESS PID LINE (FORMAT 2).
  757. *
  758. * ENTRY (A5) = ADDRESS OF PID WORD.
  759. * (X5) = PID WORD.
  760. *
  761. * EXIT PID LINE WRITTEN TO *WBUF*.
  762. *
  763. * USES X - 0, 1, 2, 3, 5, 6.
  764. * A - 1, 2, 3, 5, 6.
  765. *
  766. * CALLS PNS, SFN.
  767.  
  768.  
  769. PPL SUBR ENTRY/EXIT
  770.  
  771. * PROCESS PID NAME AND MAINFRAME DESCRIPTOR.
  772.  
  773. MX0 18
  774. BX1 X0*X5 PID NAME
  775. RJ SFN SPACE FILL NAME
  776. LX6 18
  777. LX5 59-38
  778. PL X5,PPL1 IF LISTABLE
  779. SA1 PPLH
  780. BX6 X1
  781. PPL1 SA6 WBUF STORE PID IN WORKING BUFFER
  782. SA3 BLKS STORE BLANK WORD
  783. BX6 X3
  784. SA6 A6+B1
  785. SA2 A5+B1 GET MAINFRAME DESCRIPTOR
  786. MX0 42
  787. BX1 X0*X2
  788. RJ SFN SPACE FILL NAME
  789. LX6 -6
  790. SA6 A6+B1 STORE MAINFRAME DESCRIPTOR
  791.  
  792. * PROCESS MAINFRAME TYPE AND PID ATTRIBUTES.
  793.  
  794. LX5 59-41-59+38
  795. PL X5,PPL2 IF LINKED PID
  796. SA3 PPLB
  797. BX6 X3
  798. SA6 A6+B1 STORE *HOST* MAINFRAME TYPE
  799. SA3 A3+B1
  800. ERRNZ PPLC-PPLB-1 ADJUST IF WORDS NOT CONTIGUOUS
  801. LX5 59-39-59+41
  802. NG X5,PPL3 IF PRE-VALIDATION REQUIRED
  803. SA3 PPLD ATTRIBUTE IS *H*
  804. EQ PPL3 STORE PID ATTRIBUTES
  805.  
  806. PPL2 SA3 PPLE
  807. BX6 X3
  808. SA6 A6+B1 STORE *LINK* MAINFRAME TYPE
  809. SA3 PPLF
  810. LX5 59-39-59+41
  811. NG X5,PPL3 IF PRE-VALIDATION REQUIRED
  812. SA3 PPLG ATTRIBUTE IS *L*
  813. PPL3 BX6 X3
  814. SA6 A6+B1 STORE PID ATTRIBUTE
  815. SA5 A5+ RESTORE PID WORD
  816. RJ PNS PROCESS NETWORK STATUS
  817. EQ PPLX RETURN
  818.  
  819. PPLB VFD 60/10L HOST
  820. PPLC VFD 60/10L HV
  821. PPLD VFD 60/10L H
  822. PPLE VFD 60/10L LINKED
  823. PPLF VFD 60/10L LV
  824. PPLG VFD 60/10L L
  825. PPLH VFD 60/10L ---
  826. SPACE 4,10
  827. * COMMON DECKS.
  828.  
  829. *CALL COMCARG
  830. *CALL COMCCIO
  831. *CALL COMCCPM
  832. *CALL COMCLFM
  833. *CALL COMCSFM
  834. *CALL COMCSFN
  835. *CALL COMCSTF
  836. *CALL COMCSYS
  837. *CALL COMCWTC
  838. *CALL COMCWTH
  839. *CALL COMCWTW
  840. *CALL COMCZTB
  841. TITLE BUFFERS.
  842. SPACE 4,10
  843. * BUFFERS.
  844.  
  845. OBUF BSS OBUFL OUTPUT BUFFER
  846. LIDTAB EQU * LID TABLE
  847. TITLE PRESET.
  848. PRS SPACE 4,15
  849. ** PRS - PRESET.
  850. *
  851. * EXIT ABORT IF ERROR ON COMMAND.
  852. * (LFST) = 0, IF OUTPUT BEING SENT TO TERMINAL.
  853. * .NE. 0, OTHERWISE.
  854. * (PAGL) = (CLLC) = NUMBER OF LINES TO BE PRINTED
  855. * ON EACH PAGE (EXCLUDING TRAILER FOR FORMAT 2).
  856. *
  857. * USES X - 0, 1, 2, 4, 5, 6, 7.
  858. * A - 1, 2, 4, 5, 6, 7.
  859. * B - 1, 4, 5.
  860. *
  861. * CALLS ARG, STF.
  862. *
  863. * MACROS ABORT, GETPP, MESSAGE, SETFS.
  864. *
  865. * NOTE PRESET WILL BE OVERLAYED BY THE LID TABLE.
  866.  
  867.  
  868. PRS SUBR ENTRY/EXIT
  869. SB1 1
  870. SA1 ACTR GET NUMBER OF ARGUMENTS IN COMMAND
  871. MX0 -18
  872. BX1 -X0*X1
  873. ZR X1,PRS3 IF NO ARGUMENTS
  874. SB4 X1
  875. SA4 ARGR GET FIRST ARGUMENT
  876. SB5 TARG SET ARGUMENT TABLE ADDRESS
  877. RJ ARG PROCESS ARGUMENTS
  878. NZ X1,PRS5 IF ARGUMENT ERROR
  879. SA1 LIDV
  880. SA2 STVL
  881. NZ X1,PRS1 IF LID SPECIFIED
  882. ZR X2,PRS2 IF NEITHER LID NOT ST SPECIFIED
  883. BX1 X2
  884. BX2 X2-X2
  885. PRS1 NZ X2,PRS5 IF BOTH LID AND ST SPECIFIED
  886. MX0 42
  887. BX6 X0*X1
  888. ZR X6,PRS8 IF KEYWORD SPECIFIED BUT NOT EQUIVALENCED
  889. SA6 A1
  890. LX6 18
  891. BX7 X0*X6
  892. NZ X7,PRS7 IF MORE THAN 3 CHARACTERS
  893. LX6 -6
  894. BX7 X0*X6
  895. ZR X7,PRS7 IF LESS THAN 3 CHARACTERS
  896. PRS2 SA1 PIDV
  897. ZR X1,PRS3 IF PID NOT SPECIFIED
  898. BX6 X0*X1
  899. ZR X6,PRS3 IF PID SPECIFIED, BUT NOT EQUIVALENCED
  900. LX6 18
  901. BX7 X0*X6
  902. NZ X7,PRS6 IF MORE THAN 3 CHARACTERS
  903. LX6 -6
  904. BX7 X0*X6
  905. ZR X7,PRS6 IF LESS THAN 3 CHARACTERS
  906. PRS3 SX2 O DETERMINE OUTPUT FILE STATUS
  907. RJ STF
  908. SA6 LFST
  909. ZR X6,PRSX IF OUTPUT ASSIGNED TO TERMINAL
  910. GETPP PAGC,PAGL,JPRD GET LINE COUNT
  911. SA5 PAGL
  912. SX7 X5-HDLN ENSURE SPACE FOR HEADERS
  913. SA1 PIDV
  914. ZR X1,PRS4 IF PID NOT SPECIFIED
  915. SX7 X7-TRLN ENSURE SPACE FOR TRAILERS
  916. PRS4 SA7 PAGL
  917. SA7 CLLC
  918. SETFS O,0 PRESERVE OUTPUT FILE
  919. EQ PRSX RETURN
  920.  
  921. PRS5 MESSAGE PRSA * LISTLID COMMAND ERROR.*
  922. ABORT
  923.  
  924. PRS6 MESSAGE PRSD * SPECIFY EXACTLY 3 CHARACTERS ON PID.*
  925. EQ PRS9 ABORT
  926.  
  927. PRS7 MESSAGE PRSE * SPECIFY EXACTLY 3 CHARACTERS ON LID.*
  928. EQ PRS9 ABORT
  929.  
  930. PRS8 MESSAGE PRSF * LID=XXX OR ST=XXX IS REQUIRED.*
  931. PRS9 ABORT
  932.  
  933. * PRESET ERROR MESSAGES.
  934.  
  935. PRSA DATA C* LISTLID COMMAND ERROR.*
  936. PRSD DATA C* SPECIFY EXACTLY 3 CHARACTERS ON PID KEYWORD.*
  937. PRSE DATA C* SPECIFY EXACTLY 3 CHARACTERS ON LID KEYWORD.*
  938. PRSF DATA C* LID=XXX OR ST=XXX IS REQUIRED.*
  939. SPACE 4,10
  940. * PRESET STORAGE LOCATIONS.
  941.  
  942. LID1 CON 1 ASSUMED LID, ST, OR PID VALUE
  943. PAGC BSS 2 PARAMETER BLOCK FOR *GETPAGE*
  944. SPACE 4,10
  945. * ARGUMENT TABLE.
  946.  
  947. TARG BSS 0
  948. LID ARG LID1,LIDV,400B
  949. ST ARG LID1,STVL,400B
  950. L ARG O,O
  951. PID ARG LID1,PIDV,400B
  952. ARG
  953. SPACE 4,10
  954. * RESERVE SUFFICIENT SPACE TO HOLD THE MAXIMUM SIZE OF THE LDT.
  955.  
  956. LENGTH EQU *-PRS PRESET LENGTH
  957. MAXLTH EQU MXLDT-LENGTH MAX LDT SIZE - PRESET LENGTH
  958. BSSZ MAXLTH ADDITIONAL CM WORDS REQUIRED TO HOLD LDT
  959. RFL= EQU *
  960. SPACE 4,10
  961. END