User Tools

Site Tools


cdc:nos2.source:nam5871:dlrest

DLREST

Table Of Contents

  • [00007] PROC DLREST
  • [00049] PROC DLDISDE
  • [00050] PROC DLFLUSH
  • [00051] PROC DLRECL
  • [00052] PROC DLWRITC

Source Code

DLREST.txt
  1. *DECK DLREST
  2. USETEXT DLFPDEF
  3. USETEXT DLONEL
  4. USETEXT MISRES
  5. USETEXT OFETB
  6. USETEXT OUTCDA
  7. PROC DLREST; # NIP RESPONSE TIME AVERAGES #
  8. *IF DEF,IMS
  9. #
  10. *1DC DLREST
  11. *
  12. * 1. PROC NAME AUTHOR DATE.
  13. * DLREST P.C.TAM 79/01/17
  14. *
  15. * 2. FUNCTIONAL DESCRIPTION.
  16. * OUTPUT THE AVERAGE RESPONSE TIME FOR EACH CONNECTION
  17. *
  18. * 3. METHOD USED.
  19. * LOOP THROUGH CONNECTION TABLE
  20. *
  21. * 4. ENTRY PARAMETERS.
  22. * MISRES COMMON BLOCK CONTAINING SUMS OF
  23. * RESPONSE TIME OF CONNECTIONS
  24. *
  25. * 5. EXIT PARAMETERS.
  26. * NONE.
  27. *
  28. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  29. * DLFPDEF DLONEL MISRES OFETB
  30. * OUTCDA
  31. *
  32. * 7. ROUTINES CALLED
  33. * DLDISDE CONVERT FIELD FROM BINARY TO DECIMAL
  34. * DISPLAY CODE
  35. * DLFLUSH EMPTY CIO BUFFER, WRITE EOR
  36. * DLRECL WAIT FOR EVENT COMPLETION
  37. * DLWRITC WRITE LINE TO CIO BUFFER
  38. *
  39. * 8. DAYFILE MESSAGES
  40. * NONE.
  41. *
  42.  #
  43. *ENDIF
  44. #
  45.   EXTERNAL ROUTINES
  46. #
  47. XREF
  48. BEGIN
  49. PROC DLDISDE; # CONVERT FIELD TO DECIMAL DISPLAY #
  50. PROC DLFLUSH; # EMPTY CIO BUFFER, WRITE EOR #
  51. PROC DLRECL; # WAIT FOR EVENT COMPLETION #
  52. PROC DLWRITC; # WRITE LINE TO CIO BUFFER #
  53. END
  54. #
  55.   LOCAL VARIABLES
  56. #
  57. ITEM
  58. I I, # INDEX FOR CONNECTION TABLE #
  59. TEMP1 C(WC); # TEMPORARY VARIABLE #
  60.  
  61. ARRAY L7 S(3);
  62. BEGIN
  63. ITEM L7FIL1 C(0,0,6) =[" "];
  64. ITEM L7FIL2 C(0,36,22) =["AVERAGE RESPONSE TIME"];
  65. ITEM L7ZERO U(2,48,12) =[0];
  66. END
  67.  
  68. ARRAY L8 S(4);
  69. BEGIN
  70. ITEM L8FIL1 C(0,0,6) = [" "];
  71. ITEM L8FIL2 C(0,36,19) = [" CN"];
  72. ITEM L8FIL3 C(2,30,13) = ["MILLISECONDS"];
  73. ITEM L8FIL4 U(3,48,12) = [0];
  74. END
  75.  
  76. ARRAY L9 S(4);
  77. BEGIN
  78. ITEM L9FIL1 C(0,0,6) = [" "];
  79. ITEM L9FIL2 C(0,36,19) = [" ----"];
  80. ITEM L9FIL3 C(2,30,13) = ["------------"];
  81. ITEM L9FIL4 U(3,48,12) = [0];
  82. END
  83.  
  84. ARRAY L10 S(4);
  85. BEGIN
  86. ITEM L10FIL1 C(0,0,7) = [" "];
  87. ITEM L10CN C(0,42,4);
  88. ITEM L10FIL2 C(1,6,16) = [" "];
  89. ITEM L10MILS C(2,42,WC);
  90. ITEM L10FIL3 C(3,42,1) = [" "];
  91. ITEM L10ZERO U(3,48,12) = [0];
  92. END
  93.  
  94. # ******************************************************************** #
  95. BEGIN # OUTPUT RESPONSE TIME AVERAGES #
  96. DLFLUSH(OFET); # EMPTY CIO BUFFER, WRITE EOR #
  97. DLRECL(OFET); # WAIT FOR EVENT COMPLETION #
  98. LINE$COUNT = MAXNO;
  99. DLWRITC(L7, 3);
  100.  
  101. DLWRITC(L8, 4);
  102.  
  103. DLWRITC(L9, 4);
  104.  
  105. DLWRITC(ONEL, 1);
  106.  
  107. # LOOP TO OUTPUT ALL ACCUMULATED RESPONSE TIME AVERAGE #
  108.  
  109. FOR I = 0 STEP 1 UNTIL MAXCN
  110. DO
  111. BEGIN
  112. IF CNEXTF[I]
  113. THEN
  114. BEGIN
  115. DLDISDE(I, 4, TEMP1);
  116. L10CN[0] = TEMP1;
  117. DLDISDE(CNSUM[I]/CNCTR[I], WC, TEMP1);
  118. L10MILS[0] = TEMP1;
  119. DLWRITC(L10, 4);
  120. END
  121. END
  122. END # DLREST #
  123. TERM
cdc/nos2.source/nam5871/dlrest.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator