CL Command Reference - CRTPRTF
CL Command List > CRTPRTF Reference
Description:
The Create Printer File (CRTPRTF) command creates a printer device file from the information specified on this command and, optionally, from the data description specifications (DDS) contained in a source file.
A printer device file is used to send records to a printer device. The printer device file identifies the printer device used and the spooling requirements; it does not contain data.
Examples:
Example 1: Creating a Printer File
CRTPRTF FILE(DSPHIST) SRCFILE(PRSNNL/JOBHIST) FILESEP(3)
This command creates a printer file named DSPHIST using the DDS source file named JOBHIST that is stored in the PRSNNL library. The defaults for the other parameters are assumed, except for FILESEP.
The printer uses standard forms that are 66 lines long and 132 print positions wide. An SCS data stream is used. It prints 6 lines per inch and overflows to a new page after line 60 is printed. The print image specified in the device description is used. Output is spooled to the output queue specified for the job and cannot be printed until the file is closed. The spooled file is not held or saved after printing. One copy of the output is printed, preceded by three separator pages, each containing the file name, the spooled number, and the job name and number. The print text specified in the current job is used.
Example 2: Creating a Printer File Containing DBCS Data
CRTPRTF FILE(IGCLIB/IGCPRT) IGCSTA(*YES)
FORMFEED(*AUTOCUT) IGCCHRRTT(*YES)
This command creates a printer file, IGCPRT (stored in library IGCLIB) that contains DBCS data. Cut sheets are automatically fed, and double-byte characters are rotated when printing.