Difference between revisions of "Retrieve Pointer to User Space (QUSPTRUS)"

From MidrangeWiki
Jump to: navigation, search
m (DaveLClarkI moved page QUSPTRUS — Retrieve Pointer to User Space to Retrieve Pointer to User Space (QUSPTRUS): Better Indexing (too many Q's))
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:API]]
 
[[Category:API]]
 
[[Category:RPG_Prototypes]]
 
[[Category:RPG_Prototypes]]
 +
[[Category:User_Spaces]]
 
== Summary ==
 
== Summary ==
  
 
The following is an RPG/LE fully free-form prototype for the IBM QUSPTRUS API to retrieve a pointer to a user space.
 
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 [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qusptrus.htm Retrieve Pointer to User Space (QUSPTRUS) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QUSPTRUS API ==
 
== Prototype for the QUSPTRUS API ==
Line 18: Line 23:
 
end-pr;
 
end-pr;
 
</pre>
 
</pre>
 +
 +
== Example ==
 +
See the [[Get Job List]] service procedure.
  
 
== References ==
 
== References ==
* [[ApiErrC — API Error Code]]
+
* [[API Error Code Structure (ApiErrC)]]

Latest revision as of 17:24, 17 December 2018

Summary

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
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qusptrus.htm
//******************************************************************************
dcl-pr IBMAPI_RtvPtrUsrSpace      extpgm('QUSPTRUS');
  UsrSpcName            char(20)  const;
  UsrSpcPtr             pointer;
// optional parm group
  UsrSpcErrC            likeds(ApiErrC)     options(*nopass:*varsize);
end-pr;

Example

See the Get Job List service procedure.

References