On 8/8/2016 12:14 PM, Richard Reeve wrote:

The issue is that while I'm not getting an eof condition on the
header, when I look at any of the header fields on the first read they are
blank.


I see that you solved your problem, but I just thought I'd mention another possible cause of this.

If you don't use those header fields in your code, then by default, the RPG compiler won't load the fields from the input buffer.

Add the DEBUG(*INPUT) keyword to your H spec to cause all input fields to be loaded even if they aren't used. (You could also code DEBUG(*YES), and I think even just DEBUG by itself with no parameters.)

http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasc/dbgunexp.htm


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.