CL Command Reference - CHGPRTF
CL Command List > CHGPRTF Reference
Description:
The Change Printer File (CHGPRTF) command changes the attributes of the specified printer device file.
Only the information specified on this command can be changed. If the data description specifications (DDS) used to create the file are changed, the printer device file must be created again before the changes can be made in the file.
Examples:
Example 1: Changing Two Parameters
CHGPRTF FILE(ACCREC/PRTRPT) LPI(6) ALIGN(*YES)
This command changes two parameters in printer file PRTRPT stored in library ACCREC. The system operator must align the pages in the printer before the system starts printing the file. The file is printed in 6 lines per inch on the pages.
Example 2: Changing All IBM-Supplied Printer Files
CHGPRTF FILE(QSYS/Q*) PAGESIZE(88 132) LPI(8) OVRFLW(80)
This command changes all IBM-supplied printer files (that is, all printer files in library QSYS whose names start with a Q) to use 88 lines of 132 characters (8 lines per inch), but to skip to the next page after 80 lines.
Example 3: Processing DBCS Data
CHGPRTF FILE(IGCLIB/IGCPRT) FORMFEED(*AUTOCUT)
IGCDTA(*YES) IGCCHRRTT(*YES)
This command changes printer file IGCPRT stored in library IGCLIB, so that it processes double-byte character set data. The system rotates double-byte characters before printing, and cut sheets are fed automatically when printing.