|
Dave Snyder wrote:
I am trying to debug an RPG program. While running and debugging the program I am trying to display certain fields getting read into the program from an externally defined input primary file. When I do an EVAL to display some field values, they are blank or zeroes when I know they should have values. Other fields contain correct values. What could cause this to happen? I am not manipulating the fields in the program at all.
The compiler does a default optimization where it doesn't bother to load fields that aren't used in the program. - Code H spec DEBUG(*INPUT) or DEBUG(*YES) if you are on V5R4. - Code H spec DEBUG(*YES) if you are pre-V5R4. There's a page in the debug section of the ILE RPG Programmer's Guide called "Unexpected Results when Evaluating Variables": http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/books_web/c0925075215.htm#Header_275
As an Amazon Associate we earn from qualifying purchases.
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.