Command reference / spool
CRTPRTF
Create Printer File
Creates a printer device file from the information on this command and, optionally, from the DDS in a source file. A printer device file identifies the printer device used and the spooling requirements. It does not contain data.
The source help entry is marked incomplete.
Allowed environments: *ALL.
Positional parameters: 4.
Parameters
FILE
File
Names the printer device file to create. Required. Name it per the naming rules of the high-level language that uses it.
*CURLIB- The job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
File
File
Library
Library
Suggested / special values:
*CURLIB
SRCFILE
Source file
Names the source file that holds the DDS used to create the printer file.
Suggested / special values:
*NONE
*NONE- There is no DDS source file for this printer file.
*LIBL- Search the library list.
*CURLIB- Search the job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Source file
Source file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SRCMBR
Source member
Names the source file member that holds the DDS for the printer file.
Suggested / special values:
*FILE
*FILE- Use the same name as the FILE parameter.
OPTION
Source listing options
Controls the output produced when the file is created. Up to four values can be given.
Suggested / special values:
*NOSRC, *SOURCE, *NOSOURCE, *LIST, *NOLIST, *SECLVL, *NOSECLVL, *EVENTF, *NOEVENTF
*SRC- Print source statements and any errors.
*SOURCE- Same as *SRC.
*NOSRC- Print source only when errors are found.
*NOSOURCE- Same as *NOSRC.
*LIST- Print an expanded source listing.
*NOLIST- No expanded listing.
*SECLVL- Include second-level message help in the DDS printout.
*NOSECLVL- Omit second-level message help.
*EVENTF- Create an event file for CODE tooling.
*NOEVENTF- No event file.
GENLVL
Generation severity level
Severity of DDS messages at or above which file creation fails. Must be greater than or equal to FLAG.
FLAG
Flagging severity level
Minimum severity of DDS messages to list. Must be less than or equal to GENLVL.
DEV
Device
Names the printer device description. For spooled output the file goes to the output queue set by OUTQ.
*JOB- The printer associated with the job.
*SYSVAL- The printer named by system value QPRTDEV when the job started.
Elements in order
Printer
Printer
Suggested / special values:
*JOB, *SYSVAL
DEVTYPE
Printer device type
Type of data stream created for the printer device file.
Allowed values:
*SCS, *IPDS, *LINE, *AFPDSLINE, *USERASCII, *AFPDS
*SCS- SNA character stream; required for several work station printers.
*IPDS- Intelligent Printer Data Stream, for IPDS printers.
*USERASCII- ASCII data stream; the caller supplies the entire hex data stream.
*AFPDS- Advanced function print data stream (MODCA-P).
*AFPDSLINE- Mixed line and AFPDS data; printer must be configured with AFP(*YES).
*LINE- Line data; printer must be configured with AFP(*YES).
IGCDTA
User specified DBCS data
For program-described files, whether DBCS data is processed. For DDS-described files, the DBCS attributes of the file.
Allowed values:
*NO, *YES
*NO- Program-described: no DBCS data. DDS-described: DBCS attributes come from the field descriptions.
*YES- Program-described: DBCS data processed. DDS-described: extra DBCS attributes applied.
IGCEXNCHR
DBCS extension characters
Whether DBCS extended characters are processed. Otherwise they print as the undefined character.
Allowed values:
*YES, *NO
*YES- The system processes DBCS extended characters.
*NO- Extended characters print as the undefined character.
TEXT
Text 'description'
Describes the object in up to 50 characters.
Suggested / special values:
*SRCMBRTXT, *BLANK
*SRCMBRTXT- Take the text from the source member used to create the file.
*BLANK- No text.
PAGESIZE
Page size
Length and width of the printer forms used by this device file, in lines and print positions or in the UOM units.
*ROWCOL- Length and width measured as rows and columns.
*UOM- Length and width measured in UOM units.
Elements in order
Length--lines per page
Length--lines per page
Width--positions per line
Width--positions per line
Measurement method
Measurement method
Allowed values:
*ROWCOL, *UOM
LPI
Lines per inch
Line spacing set on the printer for this device file. Some printers must be set manually, and an inquiry message is sent when the value changes.
CPI
Characters per inch
Printer character density. For printers with fonts, the font special value implies the CPI.
FRONTMGN
Front margin
Offset down and across of the origin from the front-side paper edge. Only for DEVTYPE(*AFPDS).
Suggested / special values:
*DEVD
*DEVD- Use the printer's no-print border; margin 0 for IPDS printers without one.
Elements in order
Offset down
Offset down
Offset across
Offset across
BACKMGN
Back margin
Offset down and across of the origin from the back-side paper edge. Only for DEVTYPE(*AFPDS).
Suggested / special values:
*FRONTMGN, *DEVD
*FRONTMGN- Use the FRONTMGN offsets.
*DEVD- Use the printer's no-print border; margin 0 for IPDS printers without one.
Elements in order
Offset down
Offset down
Offset across
Offset across
OVRFLW
Overflow line number
Line number at which printing overflows to a new page. Must not exceed the page length.
FOLD
Fold records
Whether a record longer than the page width is continued on following lines.
Allowed values:
*NO, *YES
*NO- Not folded; only the part that fits on one line prints.
*YES- Folded onto following lines.
RPLUNPRT
Unprintable character action
Whether unprintable characters are replaced, and with which substitution character.
Suggested / special values:
*NO
*NO- Unprintable characters are not replaced; a message is sent to the program.
*YES- Unprintable characters are replaced without notifying the program.
*BLANK- A blank (X'40') is the replacement character.
Elements in order
Replace character
Replace character
Allowed values:
*YES
Replacement character
Replacement character
Suggested / special values:
*BLANK
ALIGN
Align page
Whether each page must be aligned in the printer before printing starts.
Allowed values:
*NO, *YES
*NO- No alignment required.
*YES- Alignment required before output prints.
CTLCHAR
Control character
Whether the file's input records carry print control characters.
Allowed values:
*NONE, *FCFC, *MACHINE
*NONE- No print control characters in the data.
*FCFC- First position holds an ANSI forms control character.
*MACHINE- First position holds a machine code control character; not valid for externally described files.
CHLVAL
Channel values
Associates channel numbers 1 through 12 with line numbers. Used only with CTLCHAR(*FCFC).
Suggested / special values:
*NORMAL
*NORMAL- Use the default channel behavior.
Elements in order
Channel
Channel
Line number for channel
Line number for channel
Line
Line
FIDELITY
Fidelity
Whether printing continues when print errors are found on AFP(*YES) printers.
Allowed values:
*CONTENT, *ABSOLUTE
*CONTENT- Printing continues when errors are found.
*ABSOLUTE- Printing stops when errors are found.
PRTQLTY
Print quality
Quality of print produced on the supported printers. *DRAFT can activate a toner-saving mode on some printers.
Allowed values:
*STD, *DEVD, *DRAFT, *NLQ, *FASTDRAFT
*STD- Standard print quality.
*DEVD- The printer device default.
*DRAFT- Draft quality; high-speed printing on some printers.
*NLQ- Quality mode; requires multiple passes on some printers.
FORMFEED
Form feed
Allowed values:
*DEVD, *AUTOCUT, *CONT, *CUT, *CONT2
DRAWER
Source drawer
Suggested / special values:
*E1, *FORMDF
OUTBIN
Output bin
Suggested / special values:
*DEVD
FONT
Font
Suggested / special values:
*CPI, *DEVD
Elements in order
Identifier
Identifier
Point size
Point size
Suggested / special values:
*NONE
CHRID
Character identifier
Suggested / special values:
*DEVD, *SYSVAL, *JOBCCSID, *CHRIDCTL
Elements in order
Graphic character set
Graphic character set
Code page
Code page
DECFMT
Decimal format
Allowed values:
*FILE, *JOB
FNTCHRSET
Font character set
CDEFNT
Coded font
TBLREFCHR
Table Reference Characters
Allowed values:
*YES, *NO
PAGDFN
Page definition
Suggested / special values:
*NONE
Qualified parts (object, then library; write LIBRARY/OBJECT)
Page definition
Page definition
Library
Library
Suggested / special values:
*LIBL, *CURLIB
FORMDF
Form definition
Suggested / special values:
*NONE, *DEVD
Qualified parts (object, then library; write LIBRARY/OBJECT)
Form definition
Form definition
Library
Library
Suggested / special values:
*LIBL, *CURLIB
AFPCHARS
AFP Characters
Suggested / special values:
*NONE
PAGRTT
Degree of page rotation
Suggested / special values:
*AUTO, *DEVD, *COR
MULTIUP
Pages per side
REDUCE
Reduce output
Allowed values:
*TEXT, *NONE
PRTTXT
Print text
Suggested / special values:
*JOB, *BLANK
JUSTIFY
Hardware justification
DUPLEX
Print on both sides
Allowed values:
*NO, *YES, *TUMBLE, *FORMDF
UOM
Unit of measure
Allowed values:
*INCH, *CM
FRONTOVL
Front side overlay
BACKOVL
Back side overlay
CVTLINDTA
Convert line data
Allowed values:
*NO, *YES
IPDSPASTHR
IPDS pass through
Allowed values:
*DEVD, *NO, *YES
USRRSCLIBL
User resource library list
Suggested / special values:
*DEVD, *NONE, *JOBLIBL, *CURLIB
CORNERSTPL
Corner staple
Allowed values:
*NONE, *BOTRIGHT, *TOPRIGHT, *TOPLEFT, *BOTLEFT, *DEVD
EDGESTITCH
Edge stitch
Suggested / special values:
*NONE
Elements in order
Reference edge
Reference edge
Allowed values:
*BOT, *RIGHT, *TOP, *LEFT, *DEVD
Reference edge offset
Reference edge offset
Suggested / special values:
*DEVD
Number of staples
Number of staples
Suggested / special values:
*DEVD
Staple offsets
Staple offsets
Suggested / special values:
*DEVD
SADLSTITCH
Saddle stitch
Suggested / special values:
*NONE
Elements in order
Reference edge
Reference edge
Allowed values:
*TOP, *LEFT, *DEVD
Number of staples
Number of staples
Suggested / special values:
*DEVD
Staple offsets
Staple offsets
Suggested / special values:
*DEVD
FNTRSL
Font resolution for formatting
Suggested / special values:
*DEVD, *SEARCH
DFRWRT
Defer write
Allowed values:
*YES, *NO
SPOOL
Spool the data
Allowed values:
*YES, *NO
OUTQ
Spooled output queue
Suggested / special values:
*JOB, *DEV
Qualified parts (object, then library; write LIBRARY/OBJECT)
Spooled output queue
Spooled output queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
FORMTYPE
Form type
Suggested / special values:
*STD
COPIES
Copies
EXPDATE
Expiration date for file
Suggested / special values:
*NONE, *DAYS
DAYS
Days until file expires
PAGERANGE
Page range to print
Elements in order
Starting page
Starting page
Suggested / special values:
*ENDPAGE
Ending page
Ending page
Suggested / special values:
*END
MAXRCDS
Max spooled output records
Suggested / special values:
*NOMAX
FILESEP
File separators
SCHEDULE
Spooled output schedule
Allowed values:
*FILEEND, *IMMED, *JOBEND
HOLD
Hold spooled file
Allowed values:
*NO, *YES
SAVE
Save spooled file
Allowed values:
*NO, *YES
OUTPTY
Output priority (on OUTQ)
Suggested / special values:
*JOB
USRDTA
User data
Suggested / special values:
*SOURCE
SPLFOWN
Spool file owner
Allowed values:
*CURUSRPRF, *JOB, *CURGRPPRF, *JOBGRPPRF
USRDFNOPT
User Defined Option
Suggested / special values:
*NONE
USRDFNDTA
User Defined Data
Suggested / special values:
*NONE
USRDFNOBJ
User Defined Object
IGCCHRRTT
DBCS character rotation
Allowed values:
*NO, *YES
IGCCPI
DBCS characters per inch
Suggested / special values:
*CPI, *CONDENSED
IGCSOSI
DBCS SO/SI spacing
Allowed values:
*YES, *NO, *RIGHT
IGCCDEFNT
DBCS coded font
TOSTMF
To stream file
Suggested / special values:
*NONE
WSCST
Workstation customizing object
Suggested / special values:
*NONE, *PDF
Qualified parts (object, then library; write LIBRARY/OBJECT)
Workstation customizing object
Workstation customizing object
Library
Library
Suggested / special values:
*LIBL, *CURLIB
WAITFILE
Maximum file wait time
Suggested / special values:
*IMMED, *CLS
SHARE
Share open data path
Allowed values:
*NO, *YES
LVLCHK
Record format level check
Allowed values:
*YES, *NO
AUT
Authority
Suggested / special values:
*LIBCRTAUT, *ALL, *CHANGE, *EXCLUDE, *USE
REPLACE
Replace file
Allowed values:
*YES, *NO
Generated from os/cl/catalog/CRTPRTF.json and os/cl/help/CRTPRTF.json.