Difference between revisions of "Retrieve Program Information (QCLRPGMI)"

From MidrangeWiki
Jump to: navigation, search
(Created page with "Category:API Category:RPG_Prototypes == Summary == The following is an RPG/LE fully free-form prototype for the IBM QCLRPGMI API to retrieve information about a progr...")
 
(Summary)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
The following is an RPG/LE fully free-form prototype for the IBM QCLRPGMI API to retrieve information about a program.
 
The following is an RPG/LE fully free-form prototype for the IBM QCLRPGMI API to retrieve information about a program.
 +
 +
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qclrpgmi.htm Retrieve Program Information (QCLRPGMI) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QCLRPGMI API ==
 
== Prototype for the QCLRPGMI API ==
Line 22: 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 QCLRPGMI API to retrieve information about a program.

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

By Dave Clark

Prototype for the QCLRPGMI API

//******************************************************************************
// IBM API to Retrieve a Program's Information
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qclrpgmi.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qclrpgmi         // QCLRPGMI API data structures
dcl-pr IBMAPI_RtvPgmInfo          extpgm('QCLRPGMI');
  PgmInfo               likeds(QUSD0400)    options(*varsize);
  PgmInfL               int(10)   const;
  PgmIFmt               char(8)   const;
  PgmName               char(20)  const;
  PgmErrC               likeds(ApiErrC)     options(*varsize);
end-pr;

References