Retrieve Associated Space (QbnRetrieveAssociatedSpace) API


  Required Parameter Group:


  Default Public Authority: *USE

  Service Program: QBNPREPR

  Threadsafe: No

The Retrieve Associated Space (QbnRetrieveAssociatedSpace) API is used by a run-time routine to retrieve data stored with the QbnAddAssociatedSpaceEntry API. This data will be copied into the specified user space, Start of change and can be located via the "offset to list data section" in the general data structure, as described in User spaces. End of change The format of the data is specified by the user when placed into the associated space of a module using the QbnAddAssociatedSpaceEntry API.

A similar API, QbnRetrieveSpaceUserData is available to retrieve data when the program or service program in not active on the call stack.


Authorities and Locks

User Space Authority
*CHANGE
User Space Library Authority
*USE
ILE Program or Service Program Authority
*EXECUTE

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The qualified name of the user space that is to receive the associated space data. The first 10 characters contain the user space name. It is left-justified and padded with blanks. The second 10 characters contain the name of the library where the user space is located. It is left-justified and padded with blanks. The library name can be specified with the following special values:


Call level
INPUT; BINARY(4)

The call level parameter identifies the location in the call stack of the ILE program or service program, which contains the associated space data.


Associated space identifier
INPUT; CHAR(10)

The associated space identifier has the following special value:


Error code
I/O; CHAR(*)

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


Error Messages



API introduced: V3R1

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