User Tools

Site Tools


cdc:nos2.source:nam5871:dlnrep

DLNREP

Table Of Contents

  • [00010] PROC DLNREP
  • [00050] PROC DLDISBI
  • [00051] PROC DLDISDE
  • [00052] PROC DLWRITC

Source Code

DLNREP.txt
  1. *DECK DLNREP
  2. USETEXT DLFPDEF
  3. USETEXT DLTLC
  4. USETEXT DRHDR
  5. USETEXT MISRES
  6. USETEXT NHEADER
  7. USETEXT OUTCDA
  8. USETEXT WRDPAIR
  9. USETEXT ZHRCD
  10. PROC DLNREP; # NIP DEBUG LOG HEADER FORMAT #
  11. *IF DEF,IMS
  12. #
  13. *1DC DLNREP
  14. *
  15. * 1. PROC NAME AUTHOR DATE.
  16. * DLNREP P.C.TAM 78/12/13
  17. *
  18. * 2. FUNCTIONAL DESCRIPTION.
  19. * FORMATS HEADERS FOR NIP DEBUG LOG FILE
  20. *
  21. * 3. METHOD USED.
  22. * BREAKS UP NETWORK HEADER FOR PIPIN OR PIPOUT MESSAGES
  23. *
  24. * 4. ENTRY PARAMETERS.
  25. * ZHRCD COMMON BLOCK CONTAINING RECORD HEADER
  26. *
  27. * 5. EXIT PARAMETERS.
  28. * DLCC - CHARACTER LENGTH OF MESSAGE TEXT.
  29. *
  30. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  31. * DLFPDEF DLTLC DRHDR MISRES
  32. * NHEADER OUTCDA WRDPAIR ZHRCD
  33. *
  34. * 7. ROUTINES CALLED.
  35. * DLDISBI CONVERT FIELD TO BINARY DISPLAY CODE
  36. * DLDISDE CONVERT FIELD FROM BINARY TO DECIMAL
  37. * DISPLAY CODE
  38. * DLWRITC WRITE LINE TO CIO BUFFER
  39. *
  40. * 8. DAYFILE MESSAGES.
  41. * NONE.
  42. *
  43.  #
  44. *ENDIF
  45. #
  46.   EXTERNAL VARIABLES
  47. #
  48. XREF
  49. BEGIN
  50. PROC DLDISBI; # CONVERT FIELD TO BINARY DISPLAY CODE #
  51. PROC DLDISDE; # CONVERT FIELD TO DECIMAL DISPLAY #
  52. PROC DLWRITC; # WRITE LINE TO CIO BUFFER #
  53. END
  54. #
  55.   LOCAL VARIABLES
  56. #
  57. ITEM
  58. I I, # INDEX VARIABLE FOR CONNECTIONS #
  59. TEMP1 C(WC); # TEMPORARY VARIABLE #
  60.  
  61. ARRAY L4 S(6);
  62. BEGIN
  63. ITEM L4FIL1 C(0, 0,1) =[" "];
  64. ITEM L4FIL2 C(0, 6,3) =["PIP"];
  65. ITEM L4IO C(0,24,3);
  66. ITEM L4FIL3 C(0,42,4) =[" DN="];
  67. ITEM L4DN C(1, 6,3);
  68. ITEM L4FIL4 C(1,24,4) =[" SN="];
  69. ITEM L4SN C(1,48,3);
  70. ITEM L4FIL5 C(2, 6,4) =[" CN="];
  71. ITEM L4CN C(2,30,3);
  72. ITEM L4FIL6 C(2,48,4) =[" BT="];
  73. ITEM L4BT C(3,12,2);
  74. ITEM L4FIL7 C(3,24,10) =[" MSG NO. "];
  75. ITEM L4MSGN C(4,24,6);
  76. ITEM L4FIL8 C(5, 0,8) =[" "];
  77. ITEM L4ZERO U(5,48,12) =[0];
  78. END
  79.  
  80. ARRAY L5 S(6);
  81. BEGIN
  82. ITEM L5FIL1 C(0,0,21) =[" "];
  83. ITEM L5FIL2 C(2,6,4) =["BSN="];
  84. ITEM L5BSN C(2,30,1);
  85. ITEM L5FIL3 C(2,36,5) =[" CT="];
  86. ITEM L5CT C(3, 6,1);
  87. ITEM L5FIL4 C(3,12,7) =[" DBC="];
  88. ITEM L5DBC C(3,54,8);
  89. ITEM L5FIL5 C(4,42,6) =[" TLC="];
  90. ITEM L5TLC C(5,18,4);
  91. ITEM L5ZERO U(5,42,18) =[0];
  92. END
  93. ARRAY L6 S(6) ;
  94. BEGIN
  95. ITEM L6FIL1 C(0,0,47) = [" "] ;
  96. ITEM L6FIL2 C(4,42,6) = [" BS= "] ;
  97. ITEM L6BS C(5,18,4) ;
  98. ITEM L6ZERO U(5,42,18) = [0] ;
  99. END
  100.  
  101. # ******************************************************************** #
  102. BEGIN
  103. P<DRHDRWD> = LOC(ZHWD1[0]);
  104. P<NHEADER> = P<DRHDRWD> + BLKHSIZE;
  105. P<PWLHDR> = P<DRHDRWD> ;
  106. IF BLKID[0] EQ PIBIDVALUE
  107. OR BLKID[0] EQ PWLIDVALUE
  108. THEN
  109. BEGIN # INBOUND MESSAGE #
  110. L4IO[0] = "IN";
  111. NHACT[0] = CT8ASCII;
  112. IF BT[0] EQ NETMSG
  113. THEN
  114. BEGIN # CODE TO CALCULATE RESPONSE TIME #
  115. I = CN[0];
  116. CNINPF[I] = TRUE;
  117. CNINPTM[I] = ZNSEC[0];
  118. END
  119. END
  120. ELSE
  121. BEGIN # OUTBOUND MESSAGES #
  122. L4IO[0] = "OUT";
  123. IF BT[0] LQ NETMSG
  124. THEN
  125. BEGIN # CODE TO CALCULATE RESPONSE TIME #
  126. I = CN[0];
  127. IF CNINPF[I]
  128. THEN
  129. BEGIN # RESPONSE TO INBOUND MESSAGE #
  130. CNCTR[I] = CNCTR[I] + 1;
  131. CNSUM[I] = CNSUM[I] + (ZNSEC[0] - CNINPTM[I]);
  132. CNEXTF[I] = TRUE;
  133. CNINPF[I] = FALSE;
  134. END
  135. END
  136. END
  137.  
  138. # SET HEADER INFORMATION #
  139.  
  140. DLDISDE(CN[0], 3, TEMP1);
  141. L4CN[0] = TEMP1;
  142. DLDISDE(DN[0], 3, TEMP1);
  143. L4DN[0] = TEMP1;
  144. DLDISDE(SN[0], 3, TEMP1);
  145. L4SN[0] = TEMP1;
  146. DLDISDE(OUMSGNO, 6,TEMP1);
  147. L4MSGN[0] = TEMP1;
  148. IF BLKID[0] EQ PWLIDVALUE
  149. AND PWLOP[0] NQ PWLOPNSM # NOT A SUPERVISORY MESSAGE #
  150.  
  151. THEN
  152. BEGIN # FOR PWL #
  153. L4FIL6[0] = " OP=" ; # PUT OPCODE TO TRACE FILE #
  154. DLDISDE(PWLOP[0],2,TEMP1) ;
  155. L4BT[0] = TEMP1;
  156. DLDISDE(PWLBS[0],4,TEMP1) ;
  157. L6BS[0] = TEMP1 ;
  158. DLWRITC(L4, 6);
  159. DLWRITC(L6, 6);
  160. DLCC = PWLBS[0] - ZNSIZE ; # LOG THE WHOLE PWL #
  161. CT = 1 ; # FORCE IT TO BE 60 WORD CHAR #
  162. END
  163. ELSE
  164. BEGIN # NOT A PWL #
  165. L4FIL6[0] = " BT=" ;
  166. DLDISDE(BT[0],2,TEMP1) ;
  167. L4BT[0] = TEMP1 ;
  168.  
  169. DLDISDE(NHBSN[0], 1, TEMP1);
  170. L5BSN[0] = TEMP1;
  171. DLDISDE(NHACT[0], 1, TEMP1);
  172. L5CT[0] = TEMP1;
  173. DLDISBI(NHDBC[0], TEMP1);
  174. L5DBC[0] = TEMP1;
  175. DLDISDE(CC[0], 4, TEMP1);
  176. L5TLC[0] = TEMP1;
  177. DLWRITC(L4, 6);
  178. DLWRITC(L5, 6);
  179.  
  180. # RETURN CHARACTER COUNT IN DLCC FOR EASY ACCESS AND #
  181. # COMMON TREATMENT FOR AIP AND NIP LOG FILES #
  182. IF BT[0] EQ 0
  183. THEN
  184. DLCC = 0 ;
  185. ELSE
  186. DLCC = CC[0] ;
  187. CT = NHACT[0]; # SAVE ACT FOR PROCEDURE DLDIS #
  188. END
  189.  
  190.  
  191. RETURN;
  192. END # DLNREP #
  193. TERM
cdc/nos2.source/nam5871/dlnrep.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator