Set Cartridge Filter (QTASCTGF) API

  Required Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: Yes

The Set Cartridge Filter (QTASCTGF) API sets a filter that defines the cartridges that can be used by tape library devices on the system.

Authorities and Locks

The caller of this API must have *ALLOBJ and *IOSYSCFG special authorities.


Required Parameter Group

Cartridge Filter
INPUT; CHAR(*)

The structure that sets the cartridge filter.

Length of cartridge filter
INPUT; BINARY(4)

The length of the cartridge filter structure provided. The length must be set to 0 when the requested action value is 3. When the requested action value is 1, 2, or 4 the length specified must be large enough to contain the entire cartridge filter array as defined by the fields in the cartridge filter parameter.

Format name
INPUT; CHAR(8)

Specifies the content and format of the information being set.

The SFTR0100 format must be used for the cartridge filter. See SFTR0100 Format to view the information set for this format.

Requested action
INPUT; BINARY(4)

The action to take with the filter provided. The possible values are:

Error code
I/O; CHAR(*)

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


SFTR0100 Format

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



Field Descriptions

Cartridge filter array. An array of cartridge filters to be 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 cartridge identifier is restricted to characters A through Z, zero through nine, at-sign (@), dollar-sign ($), and pound sign (#). A valid generic name contains 1 or more supported characters followed by a single asterisk (*) and blanks. The at-sign (@), dollar-sign ($), pound sign (#), and asterisk (*) characters must be provided in CCSID 37.

Length of array entry. This field is set to the length, in bytes, of a single cartridge filter entry. This field must be set to 6.

Number of array entries. The number of cartridge filter entries specified.

Offset to array. The offset, in bytes, to the cartridge filter array.



Error Messages



API introduced: V5R3

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