|
----- Message from Barbara Morris <bmorris@xxxxxxxxxx> on Wed, 10are
Aug 2016 15:28:18 -0400 -----
To:
rpg400-l@xxxxxxxxxxxx
Subject:
Re: Successful read not showing any data in debug
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
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
--
Barbara
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.