Hi,

Here I have an issue about rpg pgm compiling as 'optimization level *full'

the pgm logic as below:
keylist1 chain logical file1
dow
......
write out file2
......
reade file1
endo

when the keylist1 is patical keylist in the logical file1. when the rpg pgm is compiled as 'optimization level *NONE', there is no duplicate record in output file2; but compile as 'optimization level *full', I found duplicate record in the output file2, should be duplicate record read in the logical file1.


When I change the logical file key list to exactly match with keylist1 defined in pgm. Then the runing result is fine.


Would you please help to advise there is any issue when compile the pgm as 'optimization level *full'? Many thanks!!

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.