Difference between revisions of "Retrieve Command Information (QCDRCMDI)"

From MidrangeWiki
Jump to: navigation, search
m (DaveLClarkI moved page QCDRCMDI — Retrieve Command Information to Retrieve Command Information (QCDRCMDI): Better Indexing (too many Q's))
(Summary)
 
(2 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 QCDRCMDI API to retrieve information about a command.
 
The following is an RPG/LE fully free-form prototype for the IBM QCDRCMDI API to retrieve information about a command.
 +
 +
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qcdrcmdi.htm Retrieve Command Information (QCDRCMDI) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QCDRCMDI API ==
 
== Prototype for the QCDRCMDI API ==
Line 24: Line 28:
  
 
== References ==
 
== References ==
* [[ApiErrC — API Error Code]]
+
* [[API Error Code Structure (ApiErrC)]]

Latest revision as of 16:55, 17 December 2018

Summary

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

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

By Dave Clark

Prototype for the QCDRCMDI API

//******************************************************************************
// IBM API to Retrieve a Command's Information
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qcdrcmdi.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qcdrcmdi         // QCDRCMDI API data structures
dcl-pr IBMAPI_RtvCmdInfo          extpgm('QCDRCMDI');
  CmdInfo               likeds(QCDI0200)    options(*varsize);
  CmdInfL               int(10)   const;
  CmdIFmt               char(8)   const;
  CmdName               char(20)  const;
  CmdErrC               likeds(ApiErrC)     options(*varsize);
// optional parm group
  CmdPchn               char(1)   const     options(*nopass);
end-pr;

References