Retrieve Printer File Attributes (QDFRPRTA)

From MidrangeWiki
Revision as of 22:56, 13 December 2018 by DaveLClarkI (talk | contribs) (References)
Jump to: navigation, search

Summary

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).

Prototype for the QDFRPRTA API

//******************************************************************************
// IBM API to Retrieve Printer File Attributes
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qdfrprta.htm
//******************************************************************************
/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);
end-pr;

References