Problem solve Get help with specific problems with your technologies, process and projects.

What is the best way to change a printer file on the iSeries?

I am a relatively new programmer (programming in RPG) and I have run into a problem. I need to change a printer file on my system. I have access to the source code of the printer file that i have changed and compiled fine. The problem: The output has not changed when I run the program. Do I need to compile the RPG for the changes to take affect? As I don't have source code for RPG, just object. Are these changes possible?

If you are just making changes to constant fields then you shouldn't have to recompile your RPG program for your changes to take effect. If you are adding/removing fields or formats, then you will need to recompile your RPG program to make the changes effective.

It's possible that you are not using your newly compiled print file. Some reasons for this could be: The production print file is higher in your library list than your print file or there is an override in your RPG program or a previously called CL program that causes it to point to a print file in a library that is not the one you just created. Try to watch the job as it's running and see if it's using your new print file. If it is, then you'll need to recompile your RPG program.


The Best Web Links: Tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Dig Deeper on Printing on iSeries

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.