Difference between revisions of "Create User Space (QUSCRTUS)"
From MidrangeWiki
DaveLClarkI (talk | contribs) (Created page with "Category:API Category:RPG_Prototypes == Summary == The following is an RPG/LE fully free-form prototype for the IBM QUSCRTUS API to create a user space. == Prototype...") |
DaveLClarkI (talk | contribs) |
||
(7 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 QUSCRTUS API to create a user space. | ||
+ | |||
+ | For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/quscrtus.htm Create User Space (QUSCRTUS) API] (right-click to open link in a new tab). | ||
− | + | By [[User:DaveLClarkI|Dave Clark]] | |
== Prototype for the QUSCRTUS API == | == Prototype for the QUSCRTUS API == | ||
Line 28: | Line 32: | ||
end-pr; | end-pr; | ||
</pre> | </pre> | ||
+ | |||
+ | == Example == | ||
+ | See the [[Get Job List]] service procedure. | ||
== References == | == References == | ||
− | * [[ | + | * [[API Error Code Structure (ApiErrC)]] |
Latest revision as of 17:23, 17 December 2018
Summary
The following is an RPG/LE fully free-form prototype for the IBM QUSCRTUS API to create a user space.
For more information on this API, visit Create User Space (QUSCRTUS) API (right-click to open link in a new tab).
By Dave Clark
Prototype for the QUSCRTUS API
//****************************************************************************** // IBM API to Create a User Space // https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/quscrtus.htm //****************************************************************************** dcl-pr IBMAPI_CreateUserSpace extpgm('QUSCRTUS'); UsrSpcName char(20) const; UsrSpcExtA char(10) const; UsrSpcSize int(10) const; UsrSpcInit char(1) const; UsrSpcPubA char(10) const; UsrSpcDesc char(50) const; // optional parm group 1 UsrSpcRepl char(10) const options(*nopass); UsrSpcErrC likeds(ApiErrC) options(*nopass: *varsize); // optional parm group 2 UsrSpcDomn char(10) const options(*nopass); // optional parm group 3 UsrSpcReqS int(10) const options(*nopass); UsrSpcOptA char(1) const options(*nopass); end-pr;
Example
See the Get Job List service procedure.