Retrieve Spool Information (QSPSPLI) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Spool Information (QSPSPLI) API returns information about the spooling environment on the system such as the number of spooled files in an ASP group or the number of spooled files owned by a user.

Authorities and Locks

Auxiliary Storage Pool (ASP) Device Authority
*USE to all ASP devices in an ASP group when a specific ASP group is specified for the ASP group parameter.

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. If the length is larger than the size of the receiver variable, the results are not predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the spool information being returned. The valid format is SPLI0100.

Auxiliary storage pool (ASP) group name
INPUT; CHAR(10)

The name of an auxiliary storage pool (ASP) group for which spool information is being requested. The status of the ASP group must be 'Available'. If this field is blank, the value *SYSBAS will be assumed. One of the following special values may be specified:

User name
INPUT; CHAR(10)

The name of the user who owns the spooled files to be considered when returning the requested spool information. One of the following special values may be specified:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Receiver Variable

The following table describes the order and format of the data that is returned in the receiver variable.

SPLI0100 Format



Field Descriptions

Auxiliary storage pool (ASP) group name. The name of the auxiliary storage pool (ASP) group where the spooled files exist. This is the name of the primary ASP in an ASP group or the name of an ASP device description. The following special value can be returned:

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Number of spooled files. The number of spooled files in the specified auxiliary storage pool (ASP) group for the user name specified.

User name. The name of the user that owns the spooled files. The following special value can be returned:

Error Messages



API introduced: V6R1 with PTF

[ Back to top | Print APIs | APIs by category ]