User Tools

Site Tools


cdc:nos2.source:nam5871:nvfofad

NVFOFAD

Table Of Contents

  • [00007] PROC NVFOFAD(AORD)
  • [00008] FORMAT APPLICATION DATA.
  • [00011] FORMAT APPLICATION DATA.
  • [00030] PROC SSBSBF
  • [00031] PROC SSTAQE
  • [00032] FUNC XCDD U

Source Code

NVFOFAD.txt
  1. *DECK NVFOFAD
  2. USETEXT TEXTNVF
  3. USETEXT TEXTSS
  4. USETEXT TXCMDNV
  5. USETEXT TXSMNVF
  6. USETEXT TXTAPSS
  7. PROC NVFOFAD(AORD);
  8. # TITLE - FORMAT APPLICATION DATA. #
  9. BEGIN
  10. #
  11. ** NVFOFAD - FORMAT APPLICATION DATA.
  12. *
  13. * D.K. ENDO 82/05/06
  14. * C.J. BRION 82/06/18, 83/06/23.
  15. *
  16. * THIS PROCEDURE FORMATS THE APPLICATION STATUS MESSAGES.
  17. *
  18. * PROC NVFOFAD(AORD)
  19. *
  20. * ENTRY 1. ORDINAL OF AST ENTRY FOR THE APPLICATION.
  21. *
  22. * EXIT 1. ENTRY IN THE C-LAYER QUEUE WITH MESSAGE.
  23. *
  24. #
  25. #
  26. **** PROC NVFOFAD - XREF LIST BEGINS.
  27. #
  28. XREF
  29. BEGIN
  30. PROC SSBSBF; # STORE BIT FIELD #
  31. PROC SSTAQE; # ACCEPT QUEUE ENTRY #
  32. FUNC XCDD U; # CONVERT INTEGER TO DECIMAL DISPLAY CODE #
  33. END
  34. #
  35. ****
  36. #
  37.  
  38.  
  39. ITEM AORD; # ORDINAL OF AST ENTRY FOR APPLICATION #
  40.  
  41.  
  42. DEF APSTXTL # 40 #; # CHAR COUNT OF APPL STATUS TEXT #
  43.  
  44.  
  45. ITEM CNST1; # CONSTANT 1 #
  46. ITEM CNST2; # CONSTANT 2 #
  47. ITEM CNST3; # CONSTANT 3 #
  48. ITEM ITEMP U; # UNSIGNED INTEGER TEMPORARY #
  49.  
  50.  
  51. #
  52.   THIS ARRAY DEFINES THE FORMAT OF THE APPLICATION STATUS MESSAGE.
  53. #
  54. ARRAY APSTXT [00:00] S(4);
  55. BEGIN
  56. ITEM APS$APPL C(00,00,06) = ["APPL: "];
  57. ITEM APS$ANAM C(00,36,07);
  58. ITEM APS$C1 C(01,18,01) = [","];
  59. ITEM APS$ST C(01,24,02);
  60. ITEM APS$C2 C(01,36,01) = [","];
  61. ITEM APS$CCNT C(01,42,04);
  62. ITEM APS$C3 C(02,06,01) = [","];
  63. ITEM APS$MXC C(02,12,02);
  64. ITEM APS$C4 C(02,24,01) = [","];
  65. ITEM APS$JSN C(02,30,04);
  66. ITEM APS$RS C(03,00,03);
  67. ITEM APS$ZBYT U(03,18,42) = [0];
  68. END
  69. CONTROL EJECT;
  70. # #
  71. # NVFOFAD CODE BEGINS HERE #
  72. # #
  73.  
  74. #
  75. * GENERATE STATUS LINE ONLY IF PRIMARY APPLICATION NAME IS
  76. * NOT ZERO.
  77. #
  78. IF AST$UPANAM[AORD] NQ 0
  79. THEN
  80. BEGIN
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. #
  90. * PUT THE APPLICATION NAME IN THE STATUS TEXT. ADD THE T-A, A-A,
  91. * AND RESERVED CONNECTION COUNTS, CONVERT THE SUM TO DISPLAY CODE
  92. * AND PUT IT IN THE TEXT. DETERMINE THE STATUS AND PUT IT IN THE
  93. * TEXT. PUT THE MAXIMUMCOPIES, JSN AND RS INDICATOR IN THE TEXT,
  94. * THEN SEND THE TEXT TO THE HOP.
  95. #
  96.  
  97.  
  98.  
  99. CNST1 = 0;
  100. CNST2 = 36;
  101. CNST3 = 42;
  102. SSBSBF(APSTXT,CNST1,CNST2,CNST3,B<0,42>AST$ANAM[AORD]);
  103.  
  104. ITEMP = XCDD(AST$TACN[AORD] + AST$AACN[AORD] + AST$RACN[AORD]);
  105. CNST1 = 1;
  106. CNST2 = 42;
  107. CNST3 = 24;
  108. SSBSBF(APSTXT,CNST1,CNST2,CNST3,ITEMP);
  109.  
  110. IF AST$DIF[AORD]
  111. THEN
  112. BEGIN
  113. APS$ST[0] = "DI";
  114. END
  115. ELSE IF AST$DNF[AORD]
  116. THEN
  117. BEGIN
  118. APS$ST[0] = "DN";
  119. END
  120. ELSE IF AST$JSN[AORD] EQ " " AND
  121. AST$TACN[AORD] EQ 0 AND
  122. AST$CUCOP[AORD] EQ 0 AND
  123. AST$AACN[AORD] EQ 0 AND NOT
  124. AST$SNPF[AORD]
  125. THEN
  126. BEGIN
  127. APS$ST[0] = "EN";
  128. END
  129. ELSE
  130. BEGIN
  131. APS$ST[0] = "AC";
  132. END
  133.  
  134. #
  135. * CONVERT THE MAX COPIES VALUE AND ADD TO TEXT.
  136. #
  137.  
  138. ITEMP = XCDD(AST$MXCOP[AORD]);
  139. CNST1 = 2;
  140. CNST2 = 12;
  141. CNST3 = 12;
  142. SSBSBF(APSTXT,CNST1,CNST2,CNST3,ITEMP);
  143.  
  144. #
  145. * STORE THE JSN AND RS INDICATOR INTO THE TEXT.
  146. #
  147.  
  148. APS$JSN[0] = AST$JSN[AORD];
  149. IF AST$RS[AORD]
  150. THEN
  151. APS$RS[0] = ",RS";
  152. ELSE
  153. APS$RS[0] = " ";
  154.  
  155. WCB$WORD[1] = 0;
  156. WCB$WC[1] = 2 + APSTXTL/10;
  157. ABHWORD[1] = 0;
  158. ABHABT[1] = HOPTX$;
  159.  
  160. SSTAQE(P<CTQ>,WCBUF[1],ABHBUF[1],APSTXT);
  161.  
  162.  
  163. END # IF AST$UPANAM NQ 0 #
  164.  
  165. RETURN; # **** RETURN **** #
  166. END # NVFOFAD #
  167. TERM
cdc/nos2.source/nam5871/nvfofad.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator