Retrieve Program Interface Information (QBNRPII) API


 Required Parameter Group:


 Default Public Authority: *USE

 Threadsafe: No

The Retrieve Program Interface Information (QBNRPII) API is used to retrieve program interface information from modules that are bound into programs or service programs and place the information into a single variable in the calling program. The amount of information returned is limited to the size of the variable.

You can use the QBNRPII API to retrieve program interface information such as:


Authorities and Locks

Library Authority
*EXECUTE
Program / Service Program Authority
*READ
Program / Service Program Lock
*SHRRD

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the information requested. The minimum size for this area is 8 bytes. You can specify the size of this area to be smaller than the format requested if you specify the length of receiver variable 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. If this value is larger than the actual size of the receiver variable, the results may not be predictable. The minimum value is 8.

Format name
INPUT; CHAR(8)

The content and format of the information returned for the program or service program.

The possible format names are:


Qualified object name
INPUT; CHAR(20)

The first 10 characters contain the name of the program or service program object. The second 10 characters contain the name of the library where the object is located.

You can use these special values for the library name:


Object type
INPUT; CHAR(10)

The object type of the object for which interface information is to be returned.

The possible object types are:


Qualified bound module name
INPUT; CHAR(20)

The first 10 characters contain the name of the bound module. The second 10 characters contain the name of the library where the module object was located at the time it was bound into the program or service program object.

You can use this special value for the bound module name:

You can use this special value for the library name:


Error code
I/O; CHAR(*)

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


RPII0100 Format

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



Field Descriptions

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.

CCSID (Coded Character Set ID) of interface information. The coded character set identifier (CCSID) of the interface data.

Interface information. The interface information for the bound module. See the type of interface information field for detailed information on the contents of this field.

Length of interface information available. The number of bytes available to be returned in the Interface information field. All available data will be returned if enough space is provided.

Length of interface information returned. The number of bytes returned in the Interface information field.

Module library. The name of the library where the module object was located at the time it was bound into the program or service program.

Module name. The name of the bound module.

Number of entries. The number of entries retrieved.

Object library. The name of the library where the object was found.

Object name. The name of the object for which interface information was retrieved.

Object type. The object type of the object.

Offset to first interface entry. The offset at which the first interface information entry begins. This value is relative to the start of the receiver variable. If this value is 0, there are no entries available.

Offset to interface information. The offset to the interface information retrieved for this entry. This value is relative to the start of the receiver variable.

Offset to next interface entry. The offset to the next interface information entry. This value is relative to the start of the receiver variable. If this value is 0, there are no more entries available.

Reserved. An unused field.

Type of interface information. The type of interface information returned for the module.

The possible value is:



Error Messages




API introduced: V6R1

[ Back to top | Program and CL Command APIs | APIs by category ]