Retrieve Printer File Attributes (QDFRPRTA)

From MidrangeWiki
Revision as of 22:03, 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 QDFRPRTA API to retrieve attributes for a printer...")
(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 QDFRPRTA API to retrieve attributes for a printer file definition.

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