Retrieve Service Program Information (QBNRSPGM)

From MidrangeWiki
Jump to: navigation, search


The following is an RPG/LE fully free-form prototype for the IBM QBNRSPGM API to retrieve information about a service program.

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

By Dave Clark

Prototype for the QBNRSPGM API

// IBM API to Retrieve a Service Program's Information
/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);