User Tools

Site Tools


cdc:nos2.source:nam5871:lfgssll

LFGSSLL

Table Of Contents

  • [00007] SEND SUMMARY LISTING LINE.

Source Code

LFGSSLL.txt
  1. *DECK LFGSSLL
  2. USETEXT LFGFN
  3. PROC LFGSSLL(PN,RC);
  4. BEGIN # SEND SUMMARY LISTING LINE #
  5. *IF DEF,IMS
  6. #
  7. ** LFGSSLL - SEND SUMMARY LISTING LINE.
  8. *
  9. * M. E. VATCHER 81/02/23
  10. *
  11. * LFGSSLL SENDS A SUMMARY LISTING LINE TO THE OUTPUT FILE.
  12. *
  13. * PROC LFGSSLL(PN,RC)
  14. *
  15. * ENTRY PN PARTITION NAME
  16. * RC RECORD COUNT
  17. *
  18. * EXIT NONE.
  19. *
  20. * METHOD
  21. *
  22. * FILL IN PARTITION NAME, INPUT FILE NAME, AND RECORD COUNT
  23. * AND WRITE LINE TO OUTPUT FILE.
  24. *
  25. #
  26. *ENDIF
  27.  
  28. #
  29. **** PROC LFGSSLL - XREF LIST BEGIN.
  30. #
  31.  
  32. XREF
  33. BEGIN
  34. PROC LFGWL; # WRITES LINE TO OUTPUT FILE #
  35. ITEM OUTPUT U; # FWA OF LIST OUTPUT FILE FET #
  36. PROC WRITEC; # WRITE LINE TO CIO BUFFER #
  37. PROC WRITER; # WRITE RECORD #
  38. FUNC XCDD C(10); # CONVERT INTEGER TO DECIMAL DISPLAY CODE #
  39. FUNC XSFW C(10); # SPACE FILL WORD #
  40. END
  41.  
  42. #
  43. ****
  44. #
  45.  
  46. *CALL LFGSTAN
  47.  
  48. ITEM PN C(6); # PARTITION NAME #
  49. ITEM RC U; # RECORD COUNT #
  50. ITEM TEMPC C(10);
  51.  
  52. ARRAY SLL [0:0] S(5);
  53. BEGIN # SUMMARY LISTING LINE #
  54. ITEM SLLB1 C(0,0,1) = [" "];
  55. ITEM SLLPNUM C(0,6,3);
  56. ITEM SLLB2 C(0,24,6) = [" "];
  57. ITEM SLLPNAM C(1,0,6);
  58. ITEM SLLB3 C(1,36,10) = [" "];
  59. ITEM SLLLFN C(2,36,7);
  60. ITEM SLLB4 C(3,18,7) = [" "];
  61. ITEM SLLREC C(4,0,4);
  62. ITEM SLLZ C(4,24,36) = [ 0 ];
  63. END
  64.  
  65. CONTROL EJECT;
  66. # #
  67. # LFGSSLL CODE BEGINS HERE #
  68. # #
  69. IF LISTFLG # IF A LISTING IS REQUESTED #
  70. THEN
  71. BEGIN
  72. PARTNUM = PARTNUM + 1; # INCREMENT PARTITION NUMBER #
  73. TEMPC = XCDD(PARTNUM);
  74. SLLPNUM[0] = C<7,3>TEMPC; # FILL IN PARTITION NUMBER #
  75. SLLPNAM[0] = C<0,6>PN; # FILL IN PARTITION NAME #
  76. TEMPC = XSFW(FNAME[LFN]);
  77. SLLLFN[0] = C<0,7>TEMPC; # FILL IN INPUT FILE NAME #
  78. TEMPC = XCDD(RC);
  79. SLLREC[0] = C<6,4>TEMPC; # FILL IN RECORD COUNT #
  80. LFGWL(SLL,SUM$LST); # WRITE LINE TO OUTPUT #
  81. END
  82. RETURN; # **** RETURN **** #
  83. END TERM
cdc/nos2.source/nam5871/lfgssll.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator