Retrieve Commitment Information (QTNRCMTI) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Commitment Information (QTNRCMTI) API allows you to determine if commitment control is active within the activation group for the program performing the retrieve request. Other information that can be retrieved includes:

Information about commitment definitions that are started by the system for system use only is not available through this API.

Start of change

Any call to this API will also refresh cached commitment control settings for the current job. The following settings are cached:

See the Commitment control topic collection for additional information about these settings.

End of change

Authorities and Locks

None.


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that is to receive the information requested. You can specify the size of the area smaller than the format requested as long as you specify the receiver variable length parameter correctly. As a result, the API returns only the data the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. The length must be at least 8 bytes. If the variable is not long enough to hold the information, the data is truncated. If the length is larger than the size of the receiver variable, the results are not predictable.

Format name
INPUT; CHAR(8)

The format name CMTI0100 is the only valid format name used by this API. For more information, see CMTI0100 Format.

Error code
I/O; CHAR(*)

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


CMTI0100 Format

The structure of the information returned is determined by the specified format name. For detailed descriptions of the fields, see Field Descriptions.


Field Descriptions

For more detailed descriptions of these fields and their values, see Commitment Options Format in the Change Commitment Options (QTNCHGCO) API.

Accept vote reliable commitment option. The current value of this commitment option.

The possible values are:


Action if ENDJOB commitment option. The current value of this commitment option.

The possible values are:


Action if problems commitment option. The current value of this commitment option.

The possible values are:


Bytes available. The length in bytes of all data available to return. All available data is returned if enough space is provided.

Bytes returned. The length in bytes of all data actually returned.

Commitment-definition default lock level. The default lock level at the start of commitment control for the commitment definition. This is the level of record locking that applies to records in all commitment resources under commitment control for the commitment definition. The level of record locking is this value unless it is overridden when the file is opened. You cannot override this value; however, the system can override for files opened for system functions.

The possible values are:


Commitment definition scope. The scope for the commitment definition currently active within the activation group for the program performing the retrieve request.

The possible values are:


Commitment definition status. The overall status of the commitment definition currently active for the activation group for the program performing the retrieve request. The scope for this commitment definition is returned in the commitment definition scope field.

The possible values are:


Commitment definition status for the activation group. The status of the commitment definition currently active for the activation group for the program performing the retrieve request, but specifically regarding any commitment resource changes made by programs running within the activation group.

The possible values are:


Default journal name. The journal name specified for the default journal when this commitment definition was started. If no default journal was specified, blanks are returned.

Default journal library name. The journal library name specified for the default journal when this commitment definition was started. If no default journal was specified, blanks are returned.

Last agent permitted commitment option. The current value of this commitment option.

The possible values are:


Logical unit of work identifier. The identifier for the logical unit of work currently associated with this commitment definition.


Table 1. Logical Unit of Work Identifier Format


OK to leave out commitment option. The current value of this commitment option.

The possible values are:


Vote read-only permitted commitment option. The current value of this commitment option.

The possible values are:


Wait for outcome commitment option. The current value of this commitment option.

The possible values are:


Error Messages



API introduced: V2R2

[ Back to top | Journal and Commit APIs | APIs by category ]