Retrieve Database File Description (QDBRTVFD)
From MidrangeWiki
Revision as of 21:40, 2 January 2019 by DaveLClarkI (talk | contribs)
Summary
The following is an RPG/LE fully free-form prototype for the IBM QDBRTVFD API to retrieve the description for a data file.
For more information on this API, visit Retrieve Database File Description (QDBRTVFD) API (right-click to open link in a new tab).
By Dave Clark
Prototype for the QDBRTVFD API
//****************************************************************************** // IBM API to Retrieve a Database File Description // https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qdbrtvfd.htm //****************************************************************************** dcl-pr IBMAPI_RtvFileDesc extpgm('QDBRTVFD'); FileDesc char(32767) options(*varsize); FileDscL int(10) const; FileQNam char(20); FileDFmt char(8) const; FileName char(20) const; FileRFmt char(10) const; FileOvrP char(1) const; FileSysN char(10) const; FileFmtT char(10) const; FileErrC likeds(ApiErrC) options(*varsize); end-pr;
Example
See the Find Source Member (FNDSRCMBR) sample command.