If I change the attributes of a printer file, say LPI,CPI..etc using CHGPRTF command, do I need to compile the RPG program again that uses this printer file??
Thanks
Software/Hardware used:
ASKED:
April 14, 2005 11:16 PM
UPDATED:
April 5, 2011 4:26 AM
Also, be careful which attributes you change. A client once requested an alteration to the print file so that a landscape report would fit on a portrait laser printer page.
The problem was that the resulting output could not be saved using CPYSPLF.
Check out this routines if you want to copy AFP or IPDS spool files.
http://www-912.ibm.com/s_dir/SLKBase.nsf/0/d159a7de719e905986256aa9006a835f?OpenDocument&ExpandSection=2
Document Title
Using QSPGETF and QSPPUTF Print Utilities with Command Source (R510 and Above)
Document Description
This document covers usage of the QSPGETF and QSPPUTF print utilities. The command source and a save file for the GETSPLF and PUTSPLF commands are supplied if the user wants to use a command entry screen rather than doing a CALL QSPGETF or CALL QSPPUTF. These utilities work with all types of IBM? OS/400? or IBM? i5/OS? spooled files including *SCS, *AFPDS, *IPDS, and *USERASCII spooled files.
The problem was that the resulting output could not be saved using CPYSPLF.
There should be nothing about a change in orientation that affects what CPYSPLF can copy. It only copies the text and line/page controls. An example of how orientation makes a difference is needed.
This document covers usage of the QSPGETF and QSPPUTF print utilities.
But note that as of V5R4, QSPGETF is being removed. QSPPUTF will probably follow. See the V5R4 iSeries Memorandum to Users for details.
The approved APIs should always be used.
Tom