User Tools

Site Tools


cdc:nos2.source:nam5871:kdisln

KDISLN

Table Of Contents

  • [00011] PROC KDISLN1)
  • [00093] PROC KPUT
  • [00094] PROC XTRACE

Source Code

KDISLN.txt
  1. *DECK KDISLN
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT AT
  5. USETEXT KDIS
  6. USETEXT KHDRX
  7. USETEXT KSTTAB
  8. USETEXT LLCB
  9. USETEXT NBT
  10. USETEXT PT
  11. PROC KDISLN((RELKN),(ADDRESS),(TYPE)); # DISPLAY K STATUS LINE #
  12. STARTIMS;
  13. #
  14. *1DC KDISLN
  15. *
  16. * 1.PROC NAME AUTHOR DATE
  17. * KDISLN M.GIBIAN 84/01/20
  18. *
  19. * 2.FUNCTIONAL DESCRIPTION.
  20. *
  21. * DISPLAY ONE STATUS K-DISPLAY LINE IN THE STATUS VIEW WINDOW
  22. * BUFFER.
  23. *
  24. * 3.METHOD USED
  25. *
  26. * COMPUTE ABSOLUTE VIEW WINDOW ADDRESS FROM RELATIVE ADDRESS
  27. * IF HEADER LINE, DISPLAY HEADER
  28. * ELSE
  29. * DISPLAY ALL FIELDS FOR TYPE OF DISPLAY LINE
  30. *
  31. * 4.ENTRY PARAMETERS.
  32. *
  33. * RELKN - RELATIVE ADDRESS OF LINE TO BE DISPLAYED
  34. * ADDRESS- ADDRESS OF STRUCTURE CONTAINING DATA TO BE DISPLAYED
  35. * TYPE - TYPE OF STRUCTURE TO DISPLAY (APP, EST, LGL)
  36. *
  37. * 5.OUTPUT PARAMETERS.
  38. *
  39. * 6.COMDECKS AND TEXTS USED.
  40. *
  41. * NIPDEF ACB AT KDIS KHDRX
  42. * KSTTAB LLCB NBT PT
  43. *
  44. * 7.ROUTINES CALLED.
  45. *
  46. * KPUT PUTS VALUES IN BUFFER+CONVERT FROM B TO DISPLAY
  47. * XTRACE RECORD PROCESSOR CALLS
  48. *
  49. * 8.DAYFILE MESSAGES AND OTHER IMPROTANT INFORMATION
  50. * THIS ROUTINE IS CONTAINED IN TWO OVERLAYS. IT MUST
  51. * FIT IN A SPACE SMALLER THAN THE SECONDARY OVERLAY AREA.
  52. *
  53. #
  54. STOPIMS;
  55. #
  56.   INPUT PARAMETERS
  57. #
  58. ITEM RELKN; # RELATIVE OFFSET OF LINE #
  59. ITEM TYPE S:KST; # STATUS LINE BUFFER TYPE #
  60. ITEM ADDRESS; # ACB ADDRESS/NBT ENTRY INDEX/LLCB ADDRESS#
  61.  
  62. #
  63.   LOCAL VARIABLES
  64. #
  65.  
  66. ITEM I I;
  67. ITEM KN I; # ABSOLUTE LINE OFFSET #
  68. ITEM BUF U; # POINTER TO VIEW BUFFER #
  69.  
  70. ARRAY HEAD[KST"APP":KST"LLK"] S(6);
  71. ITEM HEADER C(0,0,60)=[
  72. " APP JSN STATUS I NCN AC NSM NDM TIME UP",
  73. " EST EQ HN NSM NHM NLM IVTSTAT PRUSTAT FEREJ PV",
  74. " LOG-LINK HN TN N S T NCN AC NHDQ NLDQ TIME UP"];
  75.  
  76. BASED ARRAY INDEXES S(1);
  77. BEGIN
  78. ITEM ISTART U(0,9,9); # START INDEX IN VIEW TABLE ARRAY #
  79. ITEM IEND U(0,18,9); # END INDEX IN VIEW TABLE ARRAY #
  80. END
  81.  
  82. SWITCH KLAB:KST
  83. LB$APP:APP,
  84. LB$EST:EST,
  85. LB$LLK:LLK;
  86.  
  87. #
  88.   EXTERNAL CALLS
  89. #
  90.  
  91. XREF
  92. BEGIN
  93. PROC KPUT;
  94. PROC XTRACE;
  95. END
  96.  
  97. #
  98.   CHECK TO SEE IF HEADER NEEDS TO BE DISPLAYED
  99. #
  100.  
  101. BEGIN
  102.  
  103. CONTROL IFEQ DEBUG,1;
  104. XTRACE("KDISL");
  105. CONTROL FI;
  106.  
  107. BUF = KHDRNP[0];
  108. P<KSTTAB> = BUF + BLKHSIZE + KHDRSIZE;
  109.  
  110. P<INDEXES>=LOC(KDAPPST[0])-1;
  111. FOR I=KST"APP" STEP 1 WHILE ISTART[I] EQ 0 DO;
  112. KN=RELKN-ISTART[I];
  113. FOR I=KST"APP" STEP 1 UNTIL TYPE-1 DO KN=KN+IEND[I];
  114.  
  115. IF RELKN EQ 2 THEN
  116. BEGIN
  117. KAPPDTA[KN]=HEADER[TYPE];
  118. GOTO LB$;
  119. END
  120. GOTO KLAB[TYPE]; # SWITCH ON DISPLAY TYPE #
  121.  
  122. LB$APP: # PROCESS DISPLAY OF APPLICATION ON THE LINE #
  123. #
  124.   NOW GO GENERATE THE DISPLAY LINE FOR THE
  125.   APPLICATIONS SHOWN IN THE VIEW BUFFER
  126. #
  127.  
  128. P<ACB>=ADDRESS;
  129. KAPPNM [KN] = ACBANAME[0];
  130. KAPPJSN[KN] = ACBJOBSQN[0] ;
  131. KAPPI[KN] = " " ; # IF NOT ALLOWED FOR K-DISPLAY #
  132. IF ATK[ACBAN[0]]
  133. THEN
  134. BEGIN
  135. KAPPI[KN] = "N" ; # IF NOT IN IGNORE-ALERT STATE #
  136. IF ATI[ACBAN[0]]
  137. THEN
  138. KAPPI[KN] = "Y" ;
  139. END
  140. KAPPTUP[KN] = ACBTIMC[0] ;
  141. KPUT(BUF,KN,KPAPNCN,ACBNCN[0]);
  142. KPUT(BUF,KN,KPAPAC ,ACBLMTC[0]);
  143. KPUT(BUF,KN,KPAPNSM,ACBSMQ[0]);
  144. KPUT(BUF,KN,KPAPNDM,ACBBLKSQ[0]);
  145. KPUT(BUF,KN,KPAPSTWD,ATASBV[ACBAN[0]]);
  146.  
  147. # END OF AT SEARCH #
  148. GOTO LB$;
  149.  
  150. LB$EST: # DISPLAY EST ON THE DISPLAY LINE #
  151. #
  152.   AND UPDATE AS MANY FIELDS AS YOU CAN
  153. #
  154.  
  155. KPUT(BUF,KN,KPESNO,NBTEST[ADDRESS+0]);
  156. KPUT(BUF,KN,KPESET,NBTET[ADDRESS+0]);
  157. KPUT(BUF,KN,KPESHN,NBTHN[ADDRESS+0]);
  158. NBTIVTLS[ADDRESS+2]=NBTIVTCC[ADDRESS+2] ;
  159. NBTPRULS[ADDRESS+3]=NBTPRUCC[ADDRESS+3] ;
  160. KPUT(BUF,KN,KPESREJ,NBTNIREJ[ADDRESS+4]);
  161. KPUT(BUF,KN,KPESPV,NBTPV[ADDRESS+5]);
  162. #
  163.   END NBTE SEARCH
  164. #
  165. GOTO LB$;
  166.  
  167. LB$LLK: # DISPLAY LGL ENTRY ON THIS LINE #
  168. #
  169.   AND UPDATE AS MANY FIELDS AS YOU CAN
  170. #
  171. P<LLCB>=ADDRESS;
  172. KPUT(BUF,KN,KPLGHN,LLCBHN[0]);
  173. KPUT(BUF,KN,KPLGTN,LLCBTN[0]);
  174. KLGLTUP[KN] = LLCBTMC[0] ;
  175. KPUT(BUF,KN,KPLGN ,LLCBNRL[0]);
  176. KLGLS[KN] = " "; # IN CASE CS NOT USING THIS LINK #
  177. IF LLCBCS[0]
  178. THEN
  179. KLGLS[KN] = "S" ;
  180. KLGLT[KN] = " ";
  181. IF LLCBHH[0] # THIS IS AN A-A CONNECTION #
  182. THEN
  183. KLGLT[KN] = "H" ;
  184. KPUT(BUF,KN,KPLGNCN,LLCBNC[0]);
  185. KPUT(BUF,KN,KPLGAC ,LLCBLMTC[0]);
  186. GOTO LB$;
  187.  
  188. LB$:
  189. KAPPEND[KN]=0;
  190. RETURN;
  191. END
  192. TERM
1)
RELKN),(ADDRESS),(TYPE
cdc/nos2.source/nam5871/kdisln.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator