Printer output attributes

System Object Access uses the List Spooled Files (QUSLSPL) and Retrieve Spooled File Attributes (QUSRSPLA) iSeries™ APIs to retrieve attributes for printer output.

The possible special values are the same as those that are documented in the i5/OS™ APIs: Spooled File APIs topic in the iSeries Information Center. The following special value mappings are not explicitly documented:

CWBSO_SFL_StartingPage
If the ending page value is to be used, QUSRSPLA returns -1. System Object Access returns “*ENDPAGE”.
CWBSO_SFL_EndingPage
If the last page is to be the ending page, QUSRSPLA returns 0 or 2147483647. System Object Access returns “*END”.
CWBSO_SFL_MaximumRecords
If there is no maximum, QUSRSPLA returns 0. System Object Access returns “*NOMAX”.
CWBSO_SFL_PageRotation
If no rotation is done, QUSRSPLA returns 0. System Object Access returns “*NONE”.

An undocumented API is used to retrieve the printer device name or names for a spooled file. The attribute and its possible values are described below.

CWBSO_SFL_DeviceNames
The name of the printer device that will print the file. If the printer output is assigned to more than one printer device, this field contains all of the printer names in the group of printers. Possible values are:
printer name
The name of the printer to which the printer output is assigned.
list of printer names
The names of the printers in the group to which the printer output is assigned. Commas will separate the printer names.
empty string
The printer output is not assigned to a printer or group of printers.

CWBSO_SetListFilter accepts all special values that are supported by the List Spooled Files (QUSLSPL) API.