Change attributes of a printer file using CHGPRTF

pts.
Tags:
Programming Languages
RPG
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

No you don’t, but do bear in mind that if you change the LPI setting from, say 6 lpi to 8 lpi, then an 11″ page can now hold an extra 22 lines of text. However, unless the page length is defined within the program these bottom 22 lines won’t be printed on.

Best regards

Jonathan

==============================================================

For a general ‘rule of thumb’, simply look at the print attributes that may be changed with OVRPRTF. If you can can change it with OVRPRTF, then it should be obvious that a recompile isn’t necessary. These are ‘external’ attributes of the printer file object.

Although there are other things that can be changed without recompiling, your question seemed focused on external attributes.

Tom

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • mygoodname
    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.
    0 pointsBadges:
    report
  • StuDog
    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.
    0 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following