Retrieve Objects Secured by Authorization List (QGYRATLO) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Retrieve Objects Secured by Authorization List (QGYRATLO) API provides a list of objects that are secured by an authorization list. This API provides information similar to the Display Authorization List Objects (DSPAUTLOBJ) command and the List Objects Secured by Authorization List (QSYLATLO) API.


Differences between QSYLATLO and QGYRATLO

The QGYRATLO API returns the same information that the List Objects Secured by Authorization List (QSYLATLO) API provides, but takes a complete snapshot at once and allows subsequent records to be obtained through the Get List Entries (QGYGTLE) API.


Authorities and Locks

*WX authority to /tmp directory
Authorization List Authority
Must not be *EXCLUDE authority

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. For formats that contain variable length data, the receiver variable length must be large enough to hold the fixed portion of the record.

List information
OUTPUT; CHAR(80)

The variable that is used to return status information about the list of secured objects that were opened. See Format of List Information for a description of this parameter.

Section information
OUTPUT; CHAR(64)

The variable that is used to return entry information about the list of secured objects that was opened. See Format of Section Information for a description of this parameter.

Number of records to return
INPUT; BINARY(4)

The number of records in the list to put into the receiver variable after the entire list has been built. If -1 is specified, then all the records will be returned.

Format name
INPUT; CHAR(8)

The name of the format that is used to list objects secured by the authorization list.

You can specify these formats:


Authorization list
INPUT; CHAR(10)

The name of the authorization list for which the secured objects are returned.

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 tables describe the order and format of the data returned in the receiver variable. For detailed descriptions of the fields in the tables, see Field Descriptions.


ATLO0100 Format



ATLO0110 Format



ATLO0200 Format



ATLO0210 Format



ATLO0300 Format



ATLO0400 Format



Field Descriptions

ASP device name of library. The auxiliary storage pool (ASP) device name where the object's library is stored. If the object's library is in the system ASP or one of the basic user ASPs, this field contains *SYSBAS.

ASP device name of object. The auxiliary storage pool (ASP) device name where the object is stored. If the object is in the system ASP or one of the basic user ASPs, this field contains *SYSBAS.

Attribute. The attribute of the secured object. If the object is not in the QSYS or QDLS file system, this field is blank.

Authority holder. Whether the object is an authority holder. If the object is an authority holder, this field is Y. If not, this field is N.

Displacement to path name. The displacement in the entry to the start of the path name. The displacement will be set to zero if the receiver variable is not large enough to hold the path name.

DLO name. The document library object (DLO) name for the object. If the object is not a *DOC (document) or *FLR (folder) object, this field is blank.

Folder name. The name of the folder that contains the DLO object. If the object is not in a folder, this field contains *NONE.

Length of entry. The length (in bytes) of the current entry.

Length of path name. The length (in bytes) of the path name.

Library name. The name of the library that contains the object.

Object name. The name of the object that is secured by the authorization list. If the object is not in the QSYS or QDLS file system, this field is blank.

Object type. The type of secured object.

Offset to path name. The offset in the receiver variable to the start of the path name. The offset will be set to zero if the receiver variable is not large enough to hold the path name.

Owner. The name of the owner of the object.

Path name. The path name of the object that is secured by the authorization list. The user must request a format that supports path names if path names are to be included in the information that is returned in the receiver variable. The structure of the path name returned follows:

Primary group. The name of the user who is the primary group for the object. If there is no primary group for the object, this field contains a value of *NONE.

Reserved. An ignored field.

Text description. The descriptive text for the secured object. If the object is not in the QSYS or QDLS file system, this field is blank.


Format of List Information



Field Descriptions

Date and time created. The date and time when the list was created.

The 13 characters are:

First record in buffer. The number of the first record in the receiver variable.

Information complete indicator. Whether all requested information has been supplied.
Possible values follow:


Length of information returned. The size, in bytes, of the information that is returned in the receiver variable.

List status indicator. The status of building the list.

Possible values follow:


Reason code. The reason code that further describes why the list is only a subset of all objects. The following values can be returned:


Record length. The length of each record of information returned. For variable length records, this value is set to zero. For variable length records you can obtain the length of individual records from the records themselves.

Records returned. The number of records returned in the receiver variable. This is the smallest of the following three values:


Request handle. The handle of the request that can be used for subsequent requests of information from the list. The handle is valid until the Close List (QGYCLST) API is called to close the list, or until the job ends.

Note: This field should be treated as a hexadecimal field. It should not be converted from one CCSID to another, for example, EBCDIC to ASCII, because doing so could result in an unusable value.

Reserved. An ignored field.

Total records. The total number of records available in the list.


Format of Section Information



Field Descriptions

Entry number of first directory object. The entry number of the first directory object (objects not in the QSYS.LIB or QDLS file system) that was returned in the receiver variable. This value is only set if you are using format ATLO0300 or ATLO0400. Otherwise, -1 is returned. If the number of directory objects field is 0, this value is also 0.

Entry number of first QDLS object. The entry number of the first QDLS object that was returned in the receiver variable. This value is only set if you are using format ATLO0300 or ATLO0400. Otherwise, -1 is returned. If the number of QDLS objects field is 0, this value is also 0.

Entry number of first QSYS.LIB object. The entry number of the first QSYS.LIB object that was returned in the receiver variable. This value is only set if you are using format ATLO0300 or ATLO0400. Otherwise, -1 is returned. If the number of QSYS.LIB objects field is 0, this value is also 0.

Number of directory objects. The number of objects in directories (objects not in the QSYS.LIB or QDLS file system) that were returned in the receiver variable. This value is only set if you are using format ATLO0300 or ATLO0400. Otherwise, -1 is returned. If there are no entries for objects in directories in the receiver variable, 0 is returned.

Number of QDLS objects. The number of objects in the QDLS file system that were returned in the receiver variable. This value is only set if you are using format ATLO0300 or ATLO0400. Otherwise, -1 is returned. If there are no entries for QDLS objects in the receiver variable, 0 is returned.

Number of QSYS.LIB objects. The number of objects in the QSYS.LIB file system that were returned in the receiver variable. This value is only set if you are using format ATLO0300 or ATLO0400. Otherwise, -1 is returned. If there are no entries for QSYS.LIB objects in the receiver variable, 0 is returned.

Reserved. An ignored field.


Error Messages



API introduced: V4R1

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