List Objects That Adopt Owner Authority (QSYLOBJP) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The List Objects That Adopt Owner Authority (QSYLOBJP) API puts a list of objects that adopt an object owner's authority into a user space.

This API provides information similar to that provided by the Display Program Adopt (DSPPGMADP) command.


Authorities and Locks

User Space Authority
*CHANGE
Authority to Library Containing User Space
*EXECUTE
User Profile Authority
*OBJMGT

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The name of the existing user space to which the list of objects that adopt a user's authority is returned. The first 10 characters specify the user space name, and the second 10 characters specify the library.

You can use these special values for the library name:


Format name
INPUT; CHAR(8)

The name of the format that returns information on the objects that adopt a user's authority.

You can specify these formats:


User profile name
INPUT; CHAR(10)

The user name for which the list of objects that adopt the user's authority is returned.

You can specify the following special value:


Object type
INPUT; CHAR(10)

The type of object for which the list of objects that adopt the user's authority is returned.

You can specify only the following special values:


Continuation handle
INPUT; CHAR(20)

The handle used to continue from a previous call to this API that resulted in partially complete information. You can determine if a previous call resulted in partially complete information by checking the Information Status variable in the generic user space header following the API call.

If the API is not attempting to continue from a previous call, this parameter must be set to blanks. Otherwise, a valid continuation value must be supplied. The value may be obtained from the list header section of the user space used in the previous call. When continuing, the first entry in the returned list is the entry that immediately follows the last entry returned in the previous call.

Error code
I/O; CHAR(*)

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


User Space Variables

The following tables describe the order and format of the data returned in the user space. For detailed descriptions of the fields in the tables, see Field Descriptions.


Input Parameter Section



Header Section



OBJP0100 Format



OBJP0110 Format



OBJP0200 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 object attribute.

Continuation handle (header section). A continuation point for the API. This value is set based on the contents of the Information Status variable in the generic header for the user space. The following situations can occur:

Continuation handle (input section). Used to continue from a previous call to this API which resulted in partially complete information.

Format name. The name of the format used to return information on the objects that adopt authority.

Length of path name. The length, in bytes, of the path name.

Library name. The name of the library containing the user space or object.

Object name. The name of the object that adopts the user's authority.

Object in use. Whether the object is in use when the API tries to access it. If the object is in use, the API is not able to determine if the object adopts the user's authority. If the object is in use, this field is Y. If not, this field is N.

Object type. Possible values are:

Offset to path name. The offset in the user space to the start of the path name.

Path name. The path name of the object that adopts the user's authority.

The structure of the path name returned is:


Text description. The text description of the object.

User name. The name of the owner of the object.

User name specified. The name of the user for which the list of objects that adopt the user's authority is returned.

User space library name specified. The name of the library that contains the user space.

User space name specified. The name of the user space to which the list of objects that adopt the users authority is returned.


Error Messages



API introduced: V2R2

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