Retrieve Command Information (QCDRCMDI)

From MidrangeWiki
Revision as of 18:58, 6 December 2018 by DaveLClarkI (talk | contribs) (Created page with "Category:API Category:RPG_Prototypes == Summary == The following is an RPG/LE fully free-form prototype for the IBM QCDRCMDI API to retrieve information about a comma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Summary

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

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