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

Lines of code in an RPG program

What is the maximum number of lines of code in an RPG III, RPG IV program? Does this include comments?
The maximum number of lines is 999,999 -- that's the maximum that SEU will allow you to have, starting at sequence 0000.01 and ending at 9999.99, but if you have a program with more than 10,000 lines you are doing something terribly wrong.

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.

This was last published in April 2005

Dig Deeper on RPG iSeries 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.

-ADS BY GOOGLE

SearchDataCenter

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

Close