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

Speed up a report in RPG IV

I'm totally new to this and I'm trying to speed up a report in RPG IV. The report takes 1.5 hours to run. If I changed the key fields on the logical file, would I need to change anything in the RPGLE or PF? Aalso, how do I tell if changing this logical file will affect any other logical files related to the physical file it's associated with?

If the file is keyed on the wrong field, changing the key should speed up the process. That being said, you will have to do extensive research to ensure the logical is not used in another process to prevent another process from failing. Changing this logical will not affect the PF or any other LF. If the RPG IV is not using the key or it is using a partial that would not be impacted by the change, you should be able to safely change the LF. If the RPG IV is using the key, the key list being used would need to be modified.


The Best Web Links: tips, tutorials and more.

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

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

Dig Deeper on iSeries COBOL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.