Difference between revisions of "Retrieve Service Program Information (QBNRSPGM)"

From MidrangeWiki
Jump to: navigation, search
(Created page with "QBNRSPGM — Retrieve Service Program Information Category:API Category:RPG_Prototypes == Summary == The following is an RPG/LE fully free-form prototype for the IBM...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
QBNRSPGM — Retrieve Service Program Information
 
 
 
[[Category:API]]
 
[[Category:API]]
 
[[Category:RPG_Prototypes]]
 
[[Category:RPG_Prototypes]]
Line 6: Line 4:
  
 
The following is an RPG/LE fully free-form prototype for the IBM QBNRSPGM API to retrieve information about a service program.
 
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 [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qbnrspgm.htm Retrieve Service Program Information (QBNRSPGM) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QBNRSPGM API ==
 
== Prototype for the QBNRSPGM API ==
Line 24: Line 26:
  
 
== References ==
 
== References ==
* [[ApiErrC — API Error Code]]
+
* [[API Error Code Structure (ApiErrC)]]

Latest revision as of 16:58, 17 December 2018

Summary

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
// 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;

References