Retrieve Cartridge Filter (QTARCTGF) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Cartridge Filter (QTARCTGF) API retrieves the currently defined cartridge filter for the system.

Authorities and Locks

None.


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 provided. The length of receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

Specifies the content and format of the information being returned.

The RFTR0100 format is used for the cartridge filter information. See RFTR0100 Format to view the information returned for this format.

Error code
I/O; CHAR(*)

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


RFTR0100 Format

The following table shows the information that is returned for the RFTR0100 format. For more details about the fields in the following table, see Field Descriptions.



Field Descriptions

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.

Cartridge filter array. An array of cartridge filters currently defined for the system. Each array entry may consist of either a specific cartridge identifier, or a generic name of a cartridge identifier. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. A generic name specifies all cartridge identifiers with names that begin with the generic prefix.

Note: The complete cartridge filter array will not be returned if the receiver variable is not large enough.

Length of array entry. The length, in bytes, of a single cartridge filter entry.

Number of array entries. The number of cartridge filter entries that were returned. A value of zero is returned if there is no cartridge filter set.

Offset to array. The offset, in bytes, to the cartridge filter array. A value of zero is returned if there is no cartridge filter set.



Error Messages



API introduced: V5R3

[ Back to top | Backup and Recovery APIs | APIs by category ]