Retrieve Pointer to User Space (QUSPTRUS)

From MidrangeWiki
Revision as of 12:24, 17 December 2018 by DaveLClarkI (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The following is an RPG/LE fully free-form prototype for the IBM QUSPTRUS API to retrieve a pointer to a user space.

For more information on this API, visit Retrieve Pointer to User Space (QUSPTRUS) API (right-click to open link in a new tab).

By Dave Clark

Prototype for the QUSPTRUS API

// IBM API to Retrieve a Pointer to a User Space
dcl-pr IBMAPI_RtvPtrUsrSpace      extpgm('QUSPTRUS');
  UsrSpcName            char(20)  const;
  UsrSpcPtr             pointer;
// optional parm group
  UsrSpcErrC            likeds(ApiErrC)     options(*nopass:*varsize);


See the Get Job List service procedure.