Retrieve Category List (QTARCGYL) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Category List (QTARCGYL) API retrieves a list of the categories currently defined on 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)

The content and format of the information being returned.

The RCGY0100 format must be used for the category list information. See RCGY0100 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.


RCGY0100 Format

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



Category list

The list of categories that are currently defined for the system. Each category entry has the following 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.

Category name. The name of the defined category.

Category system.The name of the system owning the defined category. This field is blank for categories that are not owned by a specific system.

Length of category list entry. This field is set to the length, in bytes, of a single category list entry. A value of zero is returned if the category list is not available.

Number of category list entries. The number of category list entries returned. A value of zero is returned if the category list is not available.

Offset to category list. The offset, in bytes, to the category list. A value of zero is returned if the category list is not available.



Error Messages



API introduced: V5R3

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