Line of code in a RPG400 and RPG ILE Program.

55 pts.
Tags:
RPG
RPG ILE
RPG/400
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.
ASKED: May 16, 2008  12:53 PM
UPDATED: June 5, 2009  2:19 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Hi;

Unfortunately, the above answer is not accurate. Even though I changed the numbering to increment by 0.10, I am still limited to 32,764 lined of code. Here is the error message I am encountering:
“Member CT110BA in file NNNLIB/QCBLSRC exceeds 32764 records.”

Unfortunately, I have to keep adding to the same module more lines of code and STRSEU limits that.

My system ius supporting 30 different clients and therefore, have 30 different versions of the same module (I am using COBOL ILE). In an effort to bring all code back to 1 version, I adapted the NESTING concept which requires stack these modules in one version and consider the other state specific code as thier own sub modules within one NESTING Module.

Is there anything that I can change on the defaults of SEU to allow the physical number of lines to be greater than 32,764?

Thank you and have a blessed day.

Nader Numair – Kansas City, MO.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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
  • Alf
    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.
    45 pointsBadges:
    report
  • MPaesen
    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
    30 pointsBadges:
    report
  • Gilly400
    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.
    23,730 pointsBadges:
    report
  • graybeard52
    The 32,764 lines is NOT a limitation of RPG code. It a limitation of the SEU editor. Use RSE and that limit goes away. However, RPG-III does have other limits you can hit - number of variables, size of program, etc. Convert to RPG-IV and these limits generally go away.
    3,115 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following