Difference between revisions of "Retrieve User Profile Information (QSYRUSRI)"

From MidrangeWiki
Jump to: navigation, search
(Summary)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
The following is an RPG/LE fully free-form prototype for the IBM QSYRUSRI API to retrieve information about a user profile.
 
The following is an RPG/LE fully free-form prototype for the IBM QSYRUSRI API to retrieve information about a user profile.
  
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qsyrusri.htm Retrieve User Profile Information (QSYRUSRI) API] (right-click to open link in a new tab).
+
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qsyrusri.htm Retrieve User Information (QSYRUSRI) API] (right-click to open link in a new tab).
 +
 
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QSYRUSRI API ==
 
== Prototype for the QSYRUSRI API ==
Line 24: Line 26:
  
 
== References ==
 
== References ==
* [[ApiErrC — API Error Code]]
+
* [[API Error Code Structure (ApiErrC)]]

Latest revision as of 16:59, 17 December 2018

Summary

The following is an RPG/LE fully free-form prototype for the IBM QSYRUSRI API to retrieve information about a user profile.

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

By Dave Clark

Prototype for the QSYRUSRI API

//******************************************************************************
// IBM API to Retrieve User Profile Information
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qsyrusri.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qsyrusri         // QSYRUSRI API data structures
dcl-pr IBMAPI_RtvUsrPrfInfo       extpgm('QSYRUSRI');
  UsrPrfInfo            likeds(QSYI0300)    options(*varsize);
  UsrPrfInfL            int(10)   const;
  UsrPrfIFmt            char(8)   const;
  UsrPrfName            char(10)  const;
  UsrPrfErrC            likeds(ApiErrC)     options(*varsize);
end-pr;

References