User Tools

Site Tools


cdc:nos2.source:nam5871:ssspsi

SSSPSI

Table Of Contents

  • [00003] PROC SSSPSI
  • [00004] PREPARE STATISTICS INFORMATION.
  • [00008] PREPARE STATISTICS INFORMATION.
  • [00027] PROC NETLGS
  • [00028] FUNC XCDD C(10)

Source Code

SSSPSI.txt
  1. *DECK SSSPSI
  2. USETEXT TEXTSS
  3. PROC SSSPSI;
  4. # TITLE - PREPARE STATISTICS INFORMATION. #
  5.  
  6. BEGIN # SSSPSI #
  7. #
  8. ** SSSPSI - PREPARE STATISTICS INFORMATION.
  9. *
  10. * D.K. ENDO 82/09/17
  11. *
  12. * *SSSPSI* FORMATS THE STATISTICS INFORMATION AND WRITES IT TO THE
  13. * NAM STATISTICS FILE (ZZZZZSN).
  14. *
  15. * SSSPSI
  16. *
  17. * ENTRY 1. VALUES IN COMMON BLOCK *STATBUF*
  18. *
  19. * EXIT 1. FORMATTED STATISTICS TO *ZZZZZSN* FILE.
  20. *
  21. #
  22. #
  23. **** PROC SSSPSI - XREF LIST BEGINS.
  24. #
  25. XREF
  26. BEGIN
  27. PROC NETLGS; # SEND TEXT TO STATISTICS FILE(ZZZZZSN). #
  28. FUNC XCDD C(10); # CONVERT INTEGER TO DECIMAL DISPLAY CODE #
  29. END
  30. #
  31. ****
  32. #
  33.  
  34. DEF ZBP(ZNUM) # ZNUM(0) #; # USED TO ADD ZERO BYTE TO TEXT #
  35.  
  36.  
  37. ITEM I; # LOOP INDUCTION VARIABLE #
  38.  
  39.  
  40. #
  41.   THIS ARRAY DEFINES THE TEXT FORMAT OF THE SERVICES AND SCHEDULING
  42.   STATISTICS.
  43. #
  44. ARRAY STL [01:NSVT$] S(5);
  45. BEGIN
  46. ITEM STL$MSG C(00,00,30) = [" SSTAQE",
  47. " SSTETS",
  48. " RAS(SSTATS)",
  49. " RAS(SSTDFL)",
  50. " RAS(SSTSDA)",
  51. " SSTRCM",
  52. " SSTRQE",
  53. " SSTRTS",
  54. " SSTSDA",
  55. " SSTWNR",
  56. ];
  57. ITEM STL$NUM C(03,00,10);
  58. ITEM STL$ZBYT I(04,00,60) = [ZBP(NSVT$)];
  59. END
  60. # #
  61. # SSSPSI CODE BEGINS HERE #
  62. # #
  63. #
  64. * FOR EACH COUNTER CONVERT THE VALUE TO DISPLAY CODE AND PUT IT INTO
  65. * THE TEXT.
  66. #
  67.  
  68. STL$NUM[SVL"AQE"] = XCDD(SVT$VAL[SVL"AQE"]);
  69.  
  70. STL$NUM[SVL"ETS"] = XCDD(SVT$VAL[SVL"ETS"]);
  71.  
  72. STL$NUM[SVL"RAS1"] = XCDD(SVT$VAL[SVL"RAS1"]);
  73.  
  74. STL$NUM[SVL"RAS2"] = XCDD(SVT$VAL[SVL"RAS2"]);
  75.  
  76. STL$NUM[SVL"RAS3"] = XCDD(SVT$VAL[SVL"RAS3"]);
  77.  
  78. STL$NUM[SVL"RCM"] = XCDD(SVT$VAL[SVL"RCM"]);
  79.  
  80. STL$NUM[SVL"RQE"] = XCDD(SVT$VAL[SVL"RQE"]);
  81.  
  82. STL$NUM[SVL"RTS"] = XCDD(SVT$VAL[SVL"RTS"]);
  83.  
  84. STL$NUM[SVL"SDA"] = XCDD(SVT$VAL[SVL"SDA"]);
  85.  
  86. STL$NUM[SVL"WNR"] = XCDD(SVT$VAL[SVL"WNR"]);
  87.  
  88. #
  89. * SEND STATISTICS TEXT OFF TO THE NAM STATISTICS FILE.
  90. #
  91.  
  92. NETLGS(STL,NSVT$*5);
  93.  
  94.  
  95. #
  96. * CLEAR VALUES TO START STATISTIC GATHERING OVER AGAIN
  97. #
  98.  
  99. FOR I=1 STEP 1 UNTIL NSVT$
  100. DO
  101. BEGIN
  102. SVT$VAL[I] = 0;
  103. END
  104.  
  105.  
  106. RETURN; # **** RETURN **** #
  107.  
  108. END # SSSPSI #
  109. TERM
cdc/nos2.source/nam5871/ssspsi.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator