Retrieve Object Description (QUSROBJD)

From MidrangeWiki
Revision as of 21:19, 6 December 2018 by 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 QUSROBJD API to retrieve the description for a spe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Summary

The following is an RPG/LE fully free-form prototype for the IBM QUSROBJD API to retrieve the description for a specified object. The calling process must have at least *USE authority for the object.

Prototype for the QUSROBJD API

//******************************************************************************
// IBM API to Retrieve a Subsystem Description
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qwdrsbsd.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qwdrsbsd         // QWDRSBSD API data structures
dcl-pr IBMAPI_RtvSbsDesc          extpgm('QWDRSBSD');
  SbsDscInfo            likeds(QWDI0200)    options(*varsize);
  SbsDscInfL            int(10)   const;
  SbsDscFmt             char(8)   const;
  SbsDscName            char(20)  dim(1)    const  options(*varsize);
  SbsDscErrC            likeds(ApiErrC)     options(*varsize);
// optional parm group
  SbsDscCntN            int(10)   const     options(*nopass);
end-pr;

References