Command reference / spool

CRTOUTQ

Create Output Queue

Creates a new output queue for spooled files. An entry is placed on the queue for each spooled file, and files are written to the output device in order of output priority and the SEQ parameter value.

Allowed environments: *ALL. Positional parameters: 4.

Parameters

OUTQ Output queue

Specifies the output queue being created. This is a required parameter. The library qualifier defaults to *CURLIB.

Type
*QUAL
Required
Yes
Case
Uppercase
*CURLIB
The job's current library is used; if none is in the library list, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Output queue Output queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*CURLIB
Length
10
Case
Uppercase

Suggested / special values: *CURLIB

DSPDTA Display any file

Type
*CHAR
Required
No
Default
*NO
Length
6
Case
Uppercase

Allowed values: *NO, *YES, *OWNER

JOBSEP Job separators

Type
*INT4
Required
No
Default
0
Range
0 to 9
Case
Uppercase

Suggested / special values: *MSG

OPRCTL Operator controlled

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

MAXPAGES Maximum spooled file size

Specifies the largest spooled file, in pages, that may print between a starting and ending time. A larger file is deferred (DFR status) until the ending time. Times are in hhmmss format on a 24-hour clock.

Type
*ELEM
Required
No
Default
*NONE
List limit
5
Case
Uppercase

Suggested / special values: *NONE

*NONE
There is no limit on the size of spooled files printed from this queue.
Elements in order

Number of pages Number of pages

Type
*INT4
Required
No
Case
Uppercase

Starting time Starting time

Type
*TIME
Required
No
Case
Uppercase

Ending time Ending time

Type
*TIME
Required
No
Case
Uppercase

SEQ Order of files on queue

Specifies the order of spooled files on the output queue.

Type
*CHAR
Required
No
Default
*FIFO
Length
7
Case
Uppercase

Allowed values: *FIFO, *JOBNBR

*FIFO
First in, first out within priority for each file.
*JOBNBR
Entries are sorted by priority, then by the date and time the creating job entered the system.

RMTSYS Remote system

Specifies the remote system that files are sent to when a remote writer is started to this queue with STRRMTWTR.

Type
*CHAR
Required
No
Default
*NONE
Length
50
Case
Uppercase

Suggested / special values: *INTNETADR, *NONE, *PASTHR, *NWSA

*NONE
The queue is used only for local printing; STRRMTWTR cannot be used with it.
*PASTHR
The system the user passed through (STRPASTHR) is used; a file not created by a passed-through job is held (HLD).
*INTNETADR
The INTNETADR parameter identifies the system; valid only with CNNTYPE(*IP).
*NWSA
The RMTPRTQ parameter identifies the system; valid only with DESTTYPE(*NDS).

RMTPRTQ Remote printer queue

Specifies the printer queue on the remote system to which the remote writer sends spooled files.

Type
*CHAR
Required
No
Default
*USER
Length
50
Case
Uppercase

Suggested / special values: *USER, *SYSTEM

*USER
The user profile that created the spooled file determines the remote user ID; valid with CNNTYPE(*SNA) or (*USRDFN).
*SYSTEM
The default system printer on the remote system is used; valid with CNNTYPE(*SNA) or (*USRDFN) and DESTTYPE(*OS400) or (*S390).

AUTOSTRWTR Writers to autostart

Specifies the number of remote writers the system starts automatically for this queue. Ignored for user-created queues with RMTSYS(*NONE).

Type
*INT4
Required
No
Default
*NONE
Range
1 to 10
Case
Uppercase

Suggested / special values: *NONE

*NONE
No writers are auto-started to this queue.

MSGQ Queue for writer messages

Specifies the message queue that receives messages created by the remote writer started to this queue. The default is QSYSOPR.

Type
*QUAL
Required
No
Case
Uppercase
*LIBL
All libraries in the thread's library list are searched until the first match.
*CURLIB
The thread's current library is searched; if none is set, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Queue for writer messages Queue for writer messages

Type
*NAME
Required
No
Default
QSYSOPR
Length
10
Case
Uppercase

Suggested / special values: QSYSOPR

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

CNNTYPE Connection type

Specifies the type of connection with the remote system.

Type
*CHAR
Required
No
Default
*SNA
Length
50
Case
Uppercase

Suggested / special values: *SNA, *IP, *USRDFN

*SNA
Files are sent using SNADS, which must be configured.
*IP
Files are sent using TCP/IP, which requires the TCP/IP product.
*USRDFN
Files are sent using a user-defined connection.

DESTTYPE Destination type

Specifies the type of the remote system. A remote writer uses it, with the device type of the spooled file, to choose the send format. A file whose data type the system does not support is held.

Type
*CHAR
Required
No
Default
*OS400
Length
50
Case
Uppercase

Suggested / special values: *OS400, *OS400V2, *PSF2, *S390, *NDS, *OTHER

*OS400
The destination is an IBM i system; specify this when possible. Valid with *SNA, *IP, or *USRDFN.
*OS400V2
The destination runs OS/400 V2R3 or earlier; valid only with *SNA.
*S390
The destination is a System z; valid with *SNA or *USRDFN.
*PSF2
The destination is a PC running PSF/2; valid only with *IP.
*NDS
The destination is NETWARE4; valid only with *USRDFN.
*OTHER
The destination matches none of the other values, including System/36 and System/38.

TRANSFORM Host print transform

Specifies whether the host print transform converts *SCS spooled files to ASCII when they are sent to a remote printer queue. Not valid when CNNTYPE is *SNA or *NONE.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
The SCS data streams are transformed.
*NO
The SCS data streams are not transformed.

USRDTATFM User data transform

Specifies the user-defined program that transforms spooled file data. Valid only when RMTSYS is not *NONE.

Type
*QUAL
Required
No
Default
*NONE
Case
Uppercase

Suggested / special values: *NONE

*NONE
No user-defined data transform program is specified.
*LIBL
All libraries in the thread's library list are searched until the first match.
*CURLIB
The thread's current library is searched; if none is set, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

User data transform User data transform

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

MFRTYPMDL Manufacturer type and model

Specifies the manufacturer, type, and model of a printer used with the host print transform or a user data transform program. Prompted only when TRANSFORM(*YES) or a transform program is specified.

Type
*CHAR
Required
No
Default
*IBM42011
Length
50
Case
Uppercase

Suggested / special values: *IBM42011, *WSCST

*IBM42011
The IBM 4201-1 Proprinter is used (default).
*WSCST
The value of the WSCST parameter is used.

WSCST Workstation customizing object

Specifies an object holding attribute tables that customize an ASCII device, such as character presentation, fonts, and control key sequences. Prompted only when TRANSFORM(*YES) or a user data transform program is used.

Type
*QUAL
Required
No
Default
*NONE
Case
Uppercase

Suggested / special values: *NONE

*NONE
No workstation customizing object is specified.
*LIBL
All libraries in the thread's library list are searched until the first match.
*CURLIB
The thread's current library is searched; if none is set, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Workstation customizing object Workstation customizing object

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

IMGCFG Image configuration

Specifies the image configuration for this output queue. An image configuration object provides transform services for image and print datastream formats. Used only with remote writers.

Type
*CHAR
Required
No
Default
*NONE
Length
50
Case
Uppercase

Suggested / special values: *NONE

*NONE
No image configuration is specified.

INTNETADR Internet address

Type
*CHAR
Required
No
Length
50
Case
Uppercase

CLASS VM/MVS class

Type
*CHAR
Required
No
Default
A
Length
1
Case
Uppercase

FCB Forms Control Buffer

Type
*CHAR
Required
No
Default
*NONE
Length
50
Case
Uppercase

Suggested / special values: *NONE, *USRDTA, *PRTF

DESTOPT Destination options

Type
*CHAR
Required
No
Default
*NONE
Length
128
Case
Uppercase

Suggested / special values: *NONE, *USRDFNTXT, *NOWAIT

SEPPAGE Print separator page

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

USRDFNOPT User defined option

Type
*CHAR
Required
No
Default
*NONE
Length
50
List limit
4
Case
Uppercase

Suggested / special values: *NONE

USRDFNOBJ User defined object

Type
*CHAR
Required
No
Length
256
Case
Uppercase

USRDRVPGM User driver program

Type
*QUAL
Required
No
Default
*NONE
Case
Uppercase

Suggested / special values: *NONE

Qualified parts (object, then library; write LIBRARY/OBJECT)

User driver program User driver program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

SPLFASP Spooled file ASP

Type
*CHAR
Required
No
Default
*SYSTEM
Length
8
Case
Uppercase

Allowed values: *SYSTEM, *OUTQASP

TEXT Text 'description'

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Uppercase

Suggested / special values: *BLANK

DTAQ Data queue

Type
*QUAL
Required
No
Default
*NONE
Case
Uppercase

Suggested / special values: *NONE

Qualified parts (object, then library; write LIBRARY/OBJECT)

Data queue Data queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

AUTCHK Authority to check

Type
*CHAR
Required
No
Default
*OWNER
Length
7
Case
Uppercase

Allowed values: *OWNER, *DTAAUT

AUT Authority

Type
*NAME
Required
No
Default
*USE
Length
10
Case
Uppercase

Suggested / special values: *USE, *ALL, *CHANGE, *EXCLUDE, *LIBCRTAUT

IBM command documentation

Generated from os/cl/catalog/CRTOUTQ.json and os/cl/help/CRTOUTQ.json.