|
After all the great information I have received from your posts... ...it's
the least I could do.
I found this out the hard way too... ...I must have debugged a program 100
times before I figured it out.
Glad it helped.
James R. Perkins
On Dec 14, 2007 10:59 AM, Aaron Bartell <albartell@xxxxxxxxx> wrote:
--If you trying to see the values from debug, you don't reference anyvariables from that file in your program, so the values will not get
populated.
Ha! YOU WIN! Crazy. I added a simple AP.UID=AP.UID in the DOW loop (so I
had a reference to a field in that file) and now I can see it loading just
fine in debug (WSDC). This is why the parent files loaded just fine
because
I was using their key fields to prime the setll and reade's.
James, if you were here I would give you a good old southern MN hug! I
must
have spent two hours trying different things LOL!
Thanks to all who responded. I thought for sure I was either going crazy
or
my system was all wacked out. Learned something new today.
Aaron Bartell
http://mowyourlawn.com
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of James Perkins
Sent: Friday, December 14, 2007 12:19 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: READE not bringing in record data
Aaron,
Forgive me if I'm missing something, but how do you know your records are
not being loaded?
If you trying to see the values from debug, you don't reference any
variables from that file in your program, so the values will not get
populated.
Hope this helps,
James R. Perkins
On Dec 14, 2007 9:47 AM, Aaron Bartell <albartell@xxxxxxxxx> wrote:
Here is the code: http://mowyourlawn.com/temp/t_mktliv.htmlthis
I only included the tables necessary to get to the offending portion of
code
(highlighted in yellow). Anything jumping out? No subprocdures (I have
been bitten by that one before :-), but I do define a data structure for
each table so I can prefix the columns. Note that I have been doing
(prefixing) for years and haven't been bit in the butt with it.rpg400-l-bounces@xxxxxxxxxxxx]
Aaron Bartell
http://mowyourlawn.com
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:
On Behalf Of Joe Plutaso,
Sent: Friday, December 14, 2007 11:10 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: READE not bringing in record data
Aaron, just a quick shot in the dark: are you using subprocedures? If
be very careful with global vs. local declarations. If you have a datalist
structure defined locally in a subprocedure that has the file fields in
it,
those fields won't get loaded by a READ.
Joe
From: Aaron Bartelllatest
Hi all,
Not sure if this has to do with the fact that I just installed the
CUMES, but I wanted to declare that up front as that seems to be thetime
my issue started.this
I have a very simple program that first CHAINs to a header record
(successfully) and then does a SETLL/READE for a DOW loop for a child
table.
It finds the records on the READE (i.e. %eof(CHILD) is not on), but it
doesn't load the record data into my program. It continues to loop
through
for the exact amount of records that are in the child table (eight in
case) and then ends.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxxlist
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.