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.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.