|
Michael, I agree with the others, but my preference is to create a new print file, and then use the named print file in your program. In Jerry's example; CRTPRTF FILE(QTEMP/TESTPRT) PAGESIZE(66 133) then in your program(s); 000990 INPUT-OUTPUT SECTION. 001000 FILE-CONTROL. 001010 SELECT PRINT-FILE1 ASSIGN TO PRINTER-TESTPRT. 001020 EJECT 001030 DATA DIVISION. 001040 FILE SECTION. 001050 SKIP3 001060 FD PRINT-FILE1 001090 RECORD CONTAINS 133 CHARACTERS. This avoids the need for over rides in CL, and you would not need a CL program to call your COBOL program. If you get into writing your own print files, you can move the fields for an entire page, then print the page or part of the page with one write. You format the print file so the fields are where you want them, then move data to the fields, and write the record. Great for forms like statements, letters and such. Jim
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.