Either your program is very badly written, or it is trying to do too much. Look at sharing its tasks between several programs, each one doing a logical portion of the work. That way you can easily track and fix errors, and maintaining the programs will not be such a nightmare.
For myself, if a program is longer than 6,000 lines in RPGIII/IV, it is too big. If it's longer that 3,000 lines in ILE RPG, it's too big!
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Visit the ITKnowledge Exchange and get answers to your developing questions fast.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on RPG iSeries programming
Related Q&A from John Blenkinsop
When an error occurs on an IBM command, the diagnostic messages are sent first, then an escape message, which you can monitor. On AS/400 you see the ... Continue Reading
Learn how to 'append data to the file' with the FTP DIR command, and eliminate the hassle of having to end the FTP session and restart to view ... Continue Reading
RPGIV will 'think of' incoming integer fields as binary, and then will redefine them in the program structures as PACKED. So, when you chain a record... Continue Reading