User Tools

Site Tools


cdc:nos2.source:nam5871:lfgwl

Table of Contents

LFGWL

Table Of Contents

  • [00002] PROC LFGWL(MESSAGE,LSTNG$ID)
  • [00006] - WRITE LINE
  • [00038] PROC LFGLHDR
  • [00040] PROC WRITEC

Source Code

LFGWL.txt
  1. *DECK LFGWL
  2. PROC LFGWL(MESSAGE,LSTNG$ID);
  3. BEGIN # WRITE LINE #
  4. *IF,DEF,IMS
  5. #
  6. ** LFGWL -- WRITE LINE
  7. *
  8. * D.K. ENDO 81/16/12
  9. *
  10. * THIS PROCEDURE WRITES LINE TO LISTING FILE.
  11. *
  12. * PROC LFGWL(MESSAGE,LSTNG$ID)
  13. *
  14. * ENTRY MESSAGE = LINE TO BE WRITTEN
  15. * LSTNG$ID = LISTING IDENTIFIER
  16. *
  17. * EXIT NONE.
  18. *
  19. * METHOD
  20. *
  21. * IF LINE COUNT IS GREATER THAN 50,
  22. * WRITE LISTING HEADER.
  23. * WRITE LINE TO OUTPUT FILE.
  24. * INCREMENT LINE COUNT.
  25. *
  26. #
  27. *ENDIF
  28. ARRAY MESSAGE [0:0] S(1);
  29. BEGIN
  30. ITEM TEXT C(00,00,10);
  31. END
  32. ITEM LSTNG$ID; # LISTING IDENTIFIER #
  33. #
  34. **** PROC LFGWL - XREF LIST BEGINS.
  35. #
  36. XREF
  37. BEGIN
  38. PROC LFGLHDR; # WRITE LISTING HEADER #
  39. ITEM OUTPUT; # OUTPUT FILE FET #
  40. PROC WRITEC; # WRITE LINE TO OUTPUT FILE #
  41. END
  42. #
  43. ****
  44. #
  45. CONTROL NOLIST; # LFGSTAN COMMON DECK #
  46. *CALL LFGSTAN
  47. CONTROL LIST;
  48. CONTROL EJECT;
  49. # #
  50. # LFGWL CODE BEGINS HERE #
  51. # #
  52. IF LINEN GQ 50 # IF END OF PAGE #
  53. THEN
  54. BEGIN
  55. LFGLHDR(LSTNG$ID); # START NEW PAGE #
  56. END
  57. WRITEC(OUTPUT,MESSAGE);# WRITE LINE TO OUTPUT FILE #
  58. LINEN = LINEN + 1; # INCREMENT LINE COUNT #
  59. RETURN;
  60. END # LFGWL #
  61. TERM
cdc/nos2.source/nam5871/lfgwl.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator