Retrieve Exit Information (QUSRTVEI, QusRetrieveExitInformation) API


  Required Parameter Group:


  Service Program Name: QUSRGFA2

  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Exit Information (OPM, QUSRTVEI; ILE, QusRetrieveExitInformation) API retrieves information about one or more exit points and their associated exit programs. This API returns information similar to the Work with Registration Information (WRKREGINF) command.


Authorities and Locks

API Public Authority
*USE
Exit Registration Lock
*SHRNUP

Required Parameter Group

Continuation handle
INPUT; CHAR(16)

The value returned to the user in the receiver variable when only partial exit information is returned. This parameter must be set to blanks on the first call to this API. This parameter is used when more information is available to return than what could fit in the receiver variable. When you specify a continuation handle for this parameter, all other parameters must have the same values as the call to the API that generated the continuation handle. Failure to do so may result in incomplete or inaccurate information.

Entries are only returned in their entirety; the API never returns anything less. If there is not enough space for the entire entry, the continuation handle is set to something other than blanks.

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the exit information requested.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. If the length is larger than the size of the receiver variable, the results may not be predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the exit information to be returned. You must use one of the following format names:

Refer to EXTI0100 Format, EXTI0200 Format, and EXTI0300 Format for more information.

Exit point name
INPUT; CHAR(20)

The name of the exit point for which information is being retrieved. You must use one of the following values.

Note: The specified values in these value descriptions pertain to the exit point format name, exit program number, and exit program selection criteria fields.


Exit point format name
INPUT; CHAR(8)

The exit point format name associated with an exit point. You must use one of the following values.

Note: The specified values in these value descriptions pertain to the exit point name, exit program number, and exit program selection criteria fields.


Exit program number
INPUT; BINARY(4)

The number of the exit program. If you specify format EXTI0100, this parameter is ignored. You must use one of the following values.

Note: The specified values in these value descriptions pertain to the exit point name, exit point format name, and exit program selection criteria fields.


Exit program selection criteria
INPUT; CHAR(*)

The selection criteria to be used when selecting which exit programs associated with the exit point are returned. The comparison data is compared against the exit program data. The comparison data and the exit program data to compare it to must be from 1 through 256 characters, and no CCSID normalization is performed. Using characters from the invariant character set for the comparison data is recommended.

For format EXTI0100, this parameter is ignored.

The information must be in the following format:

Number of selection criteria
BINARY(4)
The total number of selection criteria. Specify 0 if no selection criteria are specified. The maximum value for this field is 1.
Selection criteria array
CHAR(*)
The selection criteria. Refer to Format for Exit Program Selection Criteria for more information.

Error code
I/O; CHAR(*)

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


EXTI0100 Format

The following information is returned for the EXTI0100 format. This format provides information on an exit point. For a detailed description of each field, see Field Descriptions.



EXTI0200 Format

The following information is returned for the EXTI0200 format. This format provides basic information on an exit program. The exit programs will be in ascending sequence based on the exit point name, exit point format name, and exit program number. For a detailed description of each field, see Field Descriptions.



EXTI0300 Format

The following information is returned for the EXTI0300 format. This format provides complete information on an exit program. The exit programs will be in ascending sequence based on the exit point name, exit point format name, and exit program number. For a detailed description of each field, see Field Descriptions.



Field Descriptions

Allow change of exit point controls. Whether the exit point controls can be changed. The possible values follow:

Allow deregistration. Whether the exit point can be deregistered. The possible values follow:

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

If the continuation handle is set to a value other than blanks, this field contains an approximation of the total bytes available. At a minimum, this field contains the actual number of bytes available.

Bytes returned. The number of bytes of data returned.

Complete entry. Whether the information returned for the exit point is complete and accurate. Incomplete information may occur when an exit point's provider is storing the exit program information instead of having the registration facility store it. The exit point notifies the API that the information it returned to the API is incomplete or inaccurate.

All information for the exit program entry up to this field is complete and accurate. All information for the exit program entry following this field should be ignored.

The possible values follow:

Continuation handle. The handle that is returned when more data is available to return, but the receiver variable is not large enough. The handle indicates the point in the repository that the retrieval stopped. If the handle is used on the next call to the API, the API returns more data starting at the point that the handle indicates. This field is set to blanks when all information is returned.

Current number of exit programs. The current number of exit programs associated with the exit point.

Exit point description indicator. Whether the exit point description is contained in a message file or text. The possible values follow:

Exit point description message file name. The name of the message file that contains the exit point description. This field will contain blanks when a text description is provided for the exit point description.

Exit point description message file library name. The name of the library in which the exit point description message file resides. This field will contain blanks when a text description is provided for the exit point description.

Exit point description message ID. The message identifier for the exit point description. This field will contain blanks when a text description is provided for the exit point description.

Exit point format name. The exit point format name associated with the exit point.

Exit point name. The exit point name.

Exit point text description. The text for the exit point description. This field will contain blanks when a message file and message identifier are provided for the exit point description.

Exit program data. The data that is associated with the exit program.

Exit program data CCSID. The coded character set identifier (CCSID) that is used in working with the exit program data.

Exit program description indicator. Whether the exit program description is contained in a message file or text. The possible values follow:

Exit program description message file name. The name of the message file that contains the exit program description. This field will contain blanks when a text description is provided for the exit program description.

Exit program description message file library name. The name of the library in which the exit program description message file resides. This field will contain blanks when a text description is provided for the exit program description.

Exit program description message ID. The message identifier for the exit program description. This field will contain blanks when a text description is provided for the exit program description.

Exit program library name. The library in which the exit program resides.

Exit program name. The name of the exit program.

Exit program number. The exit program number associated with the exit program. This number determines the processing sequence of the exit programs associated with the exit point, where the lowest number should be processed first.

Exit program text description. The text for the exit program description. This field will contain blanks when a message file and message identifier are provided for the exit program description.

Length of exit point entry. The length of an exit point entry that is returned. This value should be used in determining the offset to the next exit point entry.

Length of exit program data. The length of the exit program data that is returned.

Length of exit program entry. The length of an exit program entry, not including the exit program data, that is returned.

Maximum number of exit programs. The maximum number of exit programs that the exit point allows.

Multithreaded job action. The action to take when calling an exit program in a multithreaded job. The possible values follow:

Number of exit point entries returned. The number of exit point entries returned. If the receiver variable is not large enough to hold all of the information, this number contains only the number of exit point entries actually returned.

Number of exit program entries returned. The number of exit program entries returned. If the receiver variable is not large enough to hold all of the information, this number contains only the number of exit program entries actually returned.

Offset to exit program data. The offset to the exit program data. The offset is from the beginning of the structure.

Offset to first exit point entry. The offset to the first exit point entry returned. The offset is from the beginning of the structure. If no entries are returned, the offset is set to zero.

Offset to first exit program entry. The offset to the first exit program entry returned. The offset is from the beginning of the structure. If no entries are returned, the offset is set to zero.

Offset to next exit program entry. The offset to the next exit program entry returned. The offset is from the beginning of the structure. If there are no more exit program entries, this value is zero.

Preprocessing exit program format name for adding an exit program. The format name for the Preprocessing Exit Program for Add.

Preprocessing exit program format name for removing an exit program. The format name for the Preprocessing Exit Program for Remove.

Preprocessing exit program format name for retrieving an exit program. The format name for the Preprocessing Exit Program for Retrieve.

Preprocessing exit program library name for adding an exit program. The library in which the Preprocessing Exit Program for Add resides.

Preprocessing exit program library name for removing an exit program. The library in which the Preprocessing Exit Program for Remove resides.

Preprocessing exit program library name for retrieving an exit program. The library in which the Preprocessing Exit Program for Retrieve resides.

Preprocessing exit program name for adding an exit program. The preprocessing exit program name that is called by the registration facility when the Add Exit Program API is called for the exit point.

Preprocessing exit program name for removing an exit program. The preprocessing exit program name that is called by the registration facility when the Remove Exit Program API is called for the exit point.

Preprocessing exit program name for retrieving exit information. The preprocessing exit program name that is called by the registration facility when the Retrieve Exit Information API is called for the exit point.

QMLTTHDACN system value. A flag that indicates whether the QMLTTHDACN system value was used in determining the multithreaded job action.

Registered exit point. Whether the exit point is registered or unregistered. The possible values follow:

Reserved. An ignored field.

Threadsafe. The thread safety status of the exit program entry. The possible values follow:



Format for Exit Program Selection Criteria

This table shows the format for the exit program selection criteria parameter. For a detailed description of each field, see Field Descriptions.



Field Descriptions

Comparison data. The data to compare to the exit program data.

Comparison operator. The comparison value to be used when comparing the exit program data with the comparison data. The following value can be specified:

Length of comparison data. The length of the data to compare to the exit program data. The length of the comparison data must be between 1 and 256.

Size of criteria entry. The size of the selection criteria entry, including this field.

Start position in exit program data. The starting position of the exit program data against which the comparison data is matched. The starting position is based on 0. Valid starting positions are from 0 through 2047.


Error Messages



API introduced: V3R1

[ Back to top | Registration Facility APIs | APIs by category ]