Retrieve Service Program Information (QBNRSPGM)
From MidrangeWiki
Revision as of 20:08, 6 December 2018 by DaveLClarkI (talk | contribs) (DaveLClarkI moved page QBNRSPGM — Retrieve Service Program Information to Retrieve Service Program Information (QBNRSPGM): Better Indexing (too many Q's))
QBNRSPGM — Retrieve Service Program Information
Summary
The following is an RPG/LE fully free-form prototype for the IBM QBNRSPGM API to retrieve information about a service program.
Prototype for the QBNRSPGM API
//****************************************************************************** // IBM API to Retrieve a Service Program's Information // https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qbnrspgm.htm //****************************************************************************** /include qsysinc/qrpglesrc,qbnrspgm // QBNRSPGM API data structures dcl-pr IBMAPI_RtvSrvPgmInfo extpgm('QBNRSPGM'); SrvPgmInfo likeds(QBNI0100) options(*varsize); SrvPgmInfL int(10) const; SrvPgmIFmt char(8) const; SrvPgmName char(20) const; SrvPgmErrC likeds(ApiErrC) options(*varsize); end-pr;