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



1)  Page 41 of the rpg reference V5R2 says that you do not have to have 
both L2 and L1 in both files.
2)  You have your L2 and L1 turned around.  Parent should be L2 and child 
should be L1
3)  What you are looking for is Matching Records.  Starting roughly around 
page 108 in the V5R2 RPG Reference should do the trick.  I've never done 
one from scratch but it should be exactly what you are looking for.

Remember, use the printed page numbers, not the pdf page numbers.
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c0925084.pdf

Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 




"Malchow, Grizzly" <GMalchow@xxxxxxxxxxxxxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
11/26/2003 03:09 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
<rpg400-l@xxxxxxxxxxxx>
cc

Fax to

Subject
RPG Cycle Newbie






I have a question about Input Primary and Input Secondary files. I'll
first show the F and I specs.

 

FFILEA     IP   E           k Disk    Prefix( Inp )

FFILEB     IS   E           k Disk    Prefix( Stp )

 

 

IFORMATA       01

I                                          InpPARENT      L1

IFORMATB       02 

I                                          StpPARENT      L1

I                                          StpCHILD       L2

     I

These 2 files have parent/child relationships in them. I'm trying to
figure out which parent/child relationships are in FILEA, but not in
FILEB and vice versa. I also need to check certain fields of those
parent/child relationships that are in both of the 2 files. The only
thing I know about using Input Primary and Input Secondary files is that
I don't have to use a READ operation, so can someone give me a crash
course about this and can someone tell me if what I have so far is a
step in the right direction? I think I need an InpCHILD L2 I spec for
FORMATA, but I'm not sure. And finally, Can the RPG cycle be used in a
sub procedure? I didn't think it could. Can someone tell me if I'm right
or wrong about that? 

Thanks in advance and happy Thanksgiving.

Griz

 

_______________________________________________
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-Ups:
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.