Start of change

Retrieve Space User Data (QbnRetrieveSpaceUserData) API


  Required Parameter Group:


  Default Public Authority: *USE

  Service Program: QBNPREPR

  Threadsafe: No

The Retrieve Space User Data (QbnRetrieveSpaceUserData) API is used to retrieve data stored with the QbnAddAssociatedSpaceEntry API. This data will be copied into the specified user space, and can be located via the "offset to list data section" in the general data structure, as described in User spaces. The format and content of the data is determined by the user when stored into the associated space of a module using the QbnAddAssociatedSpaceEntry API.

This API is similar to the QbnRetrieveAssociatedSpace API, with two differences:


Authorities and Locks

User Space Authority
*CHANGE
User Space Library Authority
*EXECUTE
User Space Lock
*EXCL
ILE Program, Service Program or Module Authority
*USE
ILE Program, Service Program or Module Library Authority
*EXECUTE
ILE Program, Service Program or Module Lock
*SHRRD

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. The space name is left-justified and padded with blanks. The second 10 characters contain the name of the library where the user space is located. The library name is left-justified and padded with blanks. The library name can be specified with the following special values:


Associated space identifier
INPUT; CHAR(10)

The associated space identifier must have the following special value:


Object name
INPUT; CHAR(20)

The qualified name of the module (*MODULE), ILE program (*PGM) or service program (*SRVPGM) object from which the data will be retrieved. The first 10 characters contain the object name. The object name is left-justified and padded with blanks. The second 10 characters contain the name of the library where the object is located. The library name is left-justified and padded with blanks. The library name can be specified with the following special values:


Object type
INPUT; CHAR(10)

Special value identifying the type of the object. It must be one of the following values:


Qualified module name
INPUT; CHAR(20)

If the object from which to retrieve the data is a program or service program, this identifies the library-qualified name of the module from within the program for which the data is retrieved. The first 10 characters contain the module name. The module name is left-justified and padded with blanks. The second 10 characters contain the name of the library where the module was located at the time it was bound into the program or service program. The library name is left-justified and padded with blanks.

If this parameter is all blanks and the object from which to retrieve the data is a program or service program, data will be retrieved for the first module in the object.

If the object for which data is being retrieved is a module, this parameter is required to be all blanks.

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


End of change
API introduced: IBM® i 7.2 with PTF

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