Hi group,

I tried to compile a /free format RPGLE program, and came across a strange
phenomenon.

Even though the CODE verifier gives the program a clean bill of health,
the compiler chokes on it:

 5722WDS V5R2M0  020719 RN        IBM ILE RPG             PETER/CALCSTOCK2
        S44E6234   05/11/03 09:09:51        Page     36
                            F i n a l   S u m m a r y
  Message Totals:
    Information  (00) . . . . . . . :      490
    Warning      (10) . . . . . . . :        0
    Error        (20) . . . . . . . :        0
    Severe Error (30+)  . . . . . . :        0
    ---------------------------------  -------
    Total . . . . . . . . . . . . . :      490
  Source Totals:
    Records . . . . . . . . . . . . :      886
    Specifications  . . . . . . . . :      827
    Data records  . . . . . . . . . :        0
    Comments  . . . . . . . . . . . :       27
         * * * * *   E N D   O F   F I N A L   S U M M A R Y   * * * * *

                 C o d e   G e n e r a t i o n   M e s s a g e s

Error creating source debugger information.
An error occurred during translation.
 * * * * *   E N D   O F   C O D E   G E N E R A T I O N   M E S S A G E S
   * * * * *

This seems to be caused by the following statement:

/free
Chain (frmdcd:frtycd:fropcd:frclc1:M(Ctr).MonthName) Stock2;
/end-free

whereby frmdcd, frtycd, fropcd and frclc1 are alpha fields, and
M(Ctr).MonthName is a numeric subfield of a qualified data structure.

When I change the keys of Stock2 so that the numeric field is in front of
the alpha fields, the program compiles just fine.

I checked the archives and apparently this is a bug in the compiler. (Note
to the IBM'ers on this list: are you aware of this and working on a fix?)

According to our system guy, we are up to date on PTF's for 5722WDS, so my
question is whether anyone has found a way to circumvent this problem,
short of changing the key order on existing production files, or creating
additional logicals.

Thanks for any help.

Peter Colpaert
iSeries Application Developer

Honda Europe NV
Langerbruggestraat 104
B-9000 GENT
Belgium
Peter.Colpaert@xxxxxxxxxxxx
Tel: +32 9 2501 334
Fax: +32 9 2501 231
----------
Yoda of Borg are we: Futile is resistance. Assimilate you, we will.
----------
The information contained in this communication is confidential and may be 
legally privileged. It is intended solely for the use of the individual or the 
entity to whom it is addressed and others authorised to receive it. If you have 
received it by mistake, please let the sender know by e-mail reply and delete 
it from your system.
If you are not the intended recipient you are hereby notified that any 
disclosure, copying, distribution or taking any action in reliance of the 
contents of this information is strictly prohibited and may be unlawful.
Honda Europe NV is neither liable for the proper and complete transmission of 
the information contained in this communication nor for any delay in its 
receipt.

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.