Question

  Asked: May 16 2008   12:53 AM GMT
  Asked by: Chandra93


Line of code in a RPG400 and RPG ILE Program.


RPG ILE, RPG/400, RPG

What is the size of RPG400 and RPG ILE program in the sence of Line of code? If my RPG400 program exceed the limited size then how can resolve this problem means i have to add more line of code to the program.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0



I know JD Edwards has a program (P4211) that if a programmer mofifies will quickly run out of space. My work around is to call another program instead of a subroutine and just pass back the information required.


Hi,

I don't think you're too likely to hit the limits on the size of RPG programs. What you might come across is the limit of line numbering in the SEU editor. It looks like you're limited to 9999 lines of code, but you can change the increment between records to 0.01 give you a maximum of 999999 (you also need to change this when you save your source member).

You also have to start thinking where you're headed when your programs get to this sort of size (maybe you should seriously think about splitting the program into smaller more mangeable modules or separate programs). When you have programs this sort of size they become very difficult to maintain.

Regards,

Martin Gilbert.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Alf  |   May 19 2008  5:15PM GMT

I work for a software development company and we have a number of programs that have over 30,000 lines of code. The answer of changing the lines to .01 is what we do. However I can tell you from experience that if I had it to do all over again. We would be using calls to smaller programs as these programs are a really hard to maintain.

 

MPaesen  |   Jun 3 2008  1:41PM GMT

Hi there,

Once I found out that RPG400 programs don’t compile anymore when the number of lines passes 14000.
In RTPG IV this limit doesn’t exist anymore.

Mathy

 

Gilly400  |   Jun 4 2008  2:12PM GMT

Hi,

Strange that I never came across that limitation - worked with some pretty big programs back in the days.

I did come across a few bugs in the RPG compiler - DO operations getting ignored if they’re on specific line numbers, etc. If you put an extra comment line in before the DO then the compiler worked OK. Real strange - seemed to have something to do with segmentation or something.

Regards,

Martin Gilbert.