User Tools

Site Tools


cdc:nos2.source:nam5871:lfglhdr

LFGLHDR

Table Of Contents

  • [00007] SEND LISTING HEADER.

Source Code

LFGLHDR.txt
  1. *DECK LFGLHDR
  2. PROC LFGLHDR(LSTNG$ID);
  3. BEGIN # SEND PAGE ONE SUMMARY LISTING HEADER #
  4.  
  5. *IF DEF,IMS
  6. #
  7. ** LFGLHDR - SEND LISTING HEADER.
  8. *
  9. * M. E. VATCHER 81/02/20
  10. *
  11. * LFGLHDR SENDS A LISTING HEADER TO THE OUTPUT FILE.
  12. *
  13. * PROC LFGLHDR
  14. *
  15. * ENTRY LSTNG$ID = LISTING IDENTIFIER.
  16. *
  17. * EXIT NONE.
  18. *
  19. * METHOD
  20. *
  21. * SKIP TO A NEW PAGE. FILL IN DATE, TIME, AND VERSION IN
  22. * LISTING HEADER AND WRITE TO OUTPUT FILE.
  23. *
  24. #
  25. *ENDIF
  26.  
  27. ITEM LSTNG$ID I; # LISTING IDENTIFIER #
  28.  
  29. #
  30. **** PROC LFGLHDR - XREF LIST BEGIN.
  31. #
  32. XREF
  33. BEGIN
  34. ITEM OUTPUT U; # FWA OF OUTPUT FILE FET #
  35. PROC CLOCK; # GET TIME OF DAY #
  36. PROC DATE; # GET DATE #
  37. PROC WRITEC; # WRITE LINE TO CIO BUFFER #
  38. PROC WRITER; # WRITE RECORD #
  39. FUNC XCDD C(10); # CONVERT INTEGER TO DECIMAL DISPLAY CODE #
  40. END
  41.  
  42. #
  43. ****
  44. #
  45.  
  46. *CALL NAMLEV
  47. *CALL LFGSTAN
  48.  
  49. ITEM TEMPC C(10);
  50.  
  51. WRITEC(OUTPUT,SKIPPG);
  52. WRITEC(OUTPUT,BLANKL);
  53. WRITEC(OUTPUT,BLANKL);
  54. IF FIRST$PAGE
  55. THEN
  56. BEGIN # IF THIS IS FIRST PAGE OF LISTING #
  57. TEMPC = C<3,10>NAMVER[0];
  58. STANDV[0] = TEMPC;
  59. STANDLV[0] = NAMLV[0];
  60. DATE(TEMPC);
  61. STANDATE[0] = TEMPC;
  62. CLOCK(TEMPC);
  63. STANDTIME[0] = TEMPC;
  64. FIRST$PAGE = FALSE; # CLEAR FIRST PAGE FLAG #
  65. END
  66. IF LSTNG$ID EQ DIR$LST # IF THIS A INPUT DIRECTIVE SUMMARY #
  67. THEN
  68. BEGIN
  69. STANDH1[0] = DIR$HDR;# PUT THE HEADER TITLE #
  70. END
  71. ELSE # MUST BE A SUMMARY LISTING #
  72. BEGIN
  73. STANDH1[0] = SUM$HDR;# PUT THE HEADER TITLE #
  74. END
  75. TEMPC = XCDD(PAGEN);
  76. STANDPN[0] = C<4,6>TEMPC; # FILL IN PAGE NUMBER #
  77. WRITEC(OUTPUT,STANDH);
  78. WRITEC(OUTPUT,BLANKL);
  79. LINEN = 5;
  80. IF LSTNG$ID EQ SUM$LST # IF THIS IS A SUMMARY LISTING #
  81. THEN
  82. BEGIN
  83. WRITEC(OUTPUT,LISTH);
  84. WRITEC(OUTPUT,BLANKL);
  85. LINEN = 7; # SET LINE NUMBER #
  86. END
  87. PAGEN = PAGEN + 1; # INCREMENT PAGE COUNT #
  88. RETURN; # **** RETURN **** #
  89. END TERM
cdc/nos2.source/nam5871/lfglhdr.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator