× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: RPG Compile error: --> CPD6311 message: 'Label on statement cause d more than 32,767 objects '
  • From: boldt@xxxxxxxxxx
  • Date: Thu, 24 Feb 2000 08:26:26 -0500



Eric wrote:
>When my RPG compile is submitted with the GENOPT(*LIST) parameter, I get
the
>message:  CPD6311:  'Label on statement caused more than 32,767 objects to
>be defined'
>
>The compile joblog shows message CPF6301:  Intermediate representation of
>program (IRP ) contains 30 errors.  Probable compiler error.
>
>My question to you is:
> - What are these 32,767 objects?  Are they:
> - Field names in program?
> - Array elements?
> - Files and field names defined?
> - All the afore-mentioned?
>
>This arbitrary limit in RPG gives us a headache every time we try to add a
>few lines of code to this program.  I will appreciate any suggestions you
>can provide.
>Thanks

Yes, these 32767 objects include all the field names, labels,
etc in the MI code.  The CPF6301 message is a bit misleading
in that it's not really a compiler error, but rather, you're
bumping into the architected limit of the MI processor.

What to do?  You could break up your program into 2 or more
smaller programs to stay away from the limit.

But probably the better course of action would be to convert
your program to RPG IV.  The ILE RPG IV compiler can generally
compile larger programs (not to mention lots of other
advantages).  Read Chapter 3 of the ILE RPG Programmers Guide.
In particular, the section "Strategy 1: OPM-Compatible
Application", which describes how to mix ILE and OPM programs
in the same application.

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.