Retrieve Lock Space Attributes (QTRXRLSA) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Lock Space Attributes (QTRXRLSA) API returns information for the specified lock space. A lock space is an internal object that is used by other objects to hold object and record locks.


Authorities and Locks

Job authority
The caller of the API must be running under a user profile that has job control (*JOBCTL) special authority.

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the lock space attributes. The size of this variable is specified in the length of receiver variable parameter.

See Format of Receiver Information for details on the format of the receiver information.

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 of receiver information
INPUT; CHAR(8)

The format of the information returned in the receiver variable. The format name is:


Lock space identifier
INPUT; CHAR(20)

The identifier of the lock space for which attributes are to be 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 Information

The format of the information returned in the receiver variable.


RLSA0100 Format

The following information is returned for the RLSA0100 format. For detailed descriptions of the fields in the table, see Field Descriptions for RLSA0100 Format.



Field Descriptions for RLSA0100 Format

Active state timer. The maximum amount of time, in seconds, that a lock space can remain in the active state before it is switched to the disabled state. The following special value may be returned:

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.

Lock space ASP name. The name of the auxiliary storage pool (ASP) that contains the lock space. The following special values also may be returned:

Lock space ASP number. The numeric identifier of the ASP containing the lock space. The following values may be returned:

Lock space library ASP name. The name of the auxiliary storage pool (ASP) that contains the library. The following special values also may be returned:

Lock space library ASP number. The numeric identifier of the ASP containing the library. The following values may be returned:

Lock space library name. The name of the library that contains the lock space.

Lock space name. The name of the lock space.

Lock space state. The current state of the lock space. The lock space state is used to determine whether object and record locks can be obtained or held by the lock space. The possible values are:

Lock space type. The type of object that is using the lock space to hold object and record locks. The possible values are:

Lock wait time. The maximum anount of time, in seconds, that a thread is allowed to wait for an object or record lock that is to be held by the lock space. The following special values may be returned:

Maximum number of threads with lock space attached. The maximum number of threads to which the lock space can be attached concurrently. The following special value may be returned:

Number of threads with lock space attached. The number of threads to which the lock space is currently attached.


Error Messages



API introduced: V5R2

[ Back to top | Work Management APIs | APIs by category ]