× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Aaron;

Ummm.... pretty sure this is your problem as instead of returning in error when you don't get a record in MLCUST your continuing on in your logic flow. As your building your key to the next chain based on retrieving the MLCUST record...........

Change;

chain H.UID MLCUST;
if not %found(MLHDR);

to if not %found(MLUCST);

Andy
----- Original Message ----- From: "Andy Hautamaki" <ahautamaki@xxxxxxxxxxxxxxx>
To: "RPG400-L@xxxxxxxxxxxx" <RPG400-L@xxxxxxxxxxxx>
Sent: Friday, December 14, 2007 1:34 PM
Subject: Fw: READE not bringing in record data


Aaron;

Not sure if you noticed this but above the code you had highlighted;

Your chain to both MLHDR and MLCUST is testing on a not %found on MLHD for
each.


Andy
----- Original Message ----- From: "Aaron Bartell" <albartell@xxxxxxxxx>
To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx>
Sent: Friday, December 14, 2007 12:47 PM
Subject: RE: READE not bringing in record data


Here is the code: http://mowyourlawn.com/temp/t_mktliv.html

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 this
(prefixing) for years and haven't been bit in the butt with it.

Aaron Bartell
http://mowyourlawn.com

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Joe Pluta
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 so,
be very careful with global vs. local declarations. If you have a data
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 Bartell

Hi all,

Not sure if this has to do with the fact that I just installed the latest
CUMES, but I wanted to declare that up front as that seems to be the time
my issue started.

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
this
case) and then ends.

--
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 thread ...


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.