Ask the Expert

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.

This was first published in May 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to: