Change printer files

You can change the parameters of a printer file by using the Change Printer File (CHGPRTF) CL command.

Using the CHGPRTF command makes the specified changes permanent for the current active session and for all future sessions.

Assume that you have a mailing label program that uses a printer file named LABELPR3. You now want to have two sets of mailing labels every time the mailing label program is run and you want the spooled file to go to the output queue named LABELS. The CL command would look like:

CHGPRTF FILE(LABELPR3) COPIES(2) OUTQ(LABELS)

When you enter this CHGPRTF command, it becomes effective immediately.

When any application program that uses printer file LABELPR3 is run, the spooled file will go to output queue LABELS and two copies of the mailing labels will be printed.