Retrieve User Profile Information (QSYRUSRI)

From MidrangeWiki
Revision as of 20:10, 6 December 2018 by DaveLClarkI (talk | contribs) (DaveLClarkI moved page QSYRUSRI — Retrieve User Profile Information to Retrieve User Profile Information (QSYRUSRI): Better Indexing (too many Q's))
Jump to: navigation, search

Summary

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

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