User spaces

List APIs require a user space for returning information. A user space is an object consisting of a collection of bytes that can be used for storing any user-defined information.

Following are some of the advantages of using user spaces:

To provide a consistent design and use of the user space (*USRSPC) objects, the list APIs use a common data structure. The list APIs are those APIs that generate a list unique to that API. This includes any list API that has a user space parameter, such as the List Spooled Files and List Objects APIs.

Related concepts
User spaces for list APIs
Receiver variables
List APIs overview
Related reference
Example in OPM RPG: Using keys with List Spooled Files API