Retrieve Printer File Attributes (QDFRPRTA)

From MidrangeWiki
Revision as of 11:58, 17 December 2018 by DaveLClarkI (talk | contribs) (Summary)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The following is an RPG/LE fully free-form prototype for the IBM QDFRPRTA API to retrieve attributes for a printer file definition.

For more information on this API, visit Retrieve Printer File Attributes (QDFRPRTA) API (right-click to open link in a new tab).

By Dave Clark

Prototype for the QDFRPRTA API

// IBM API to Retrieve Printer File Attributes
/include qsysinc/qrpglesrc,qdfrprta         // QDFRPRTA API data Structures
dcl-pr IBMAPI_RtvPrtFileAttr      extpgm('QDFRPRTA');
  PrtFileAttr           likeds(QDFF0100)    options(*varsize);
  PrtFileALen           int(10)   const;
  PrtFileAFmt           char(8)   const;
  PrtFileName           char(20)  const;
  PrtFileErrC           likeds(ApiErrC)     options(*varsize);