Try something like this:

FFILEA     IP   E     k Disk    Prefix( Inp )
FFILEB     IS   E     k Disk    Prefix( Stp )
IFORMATA       01
I                          InpPARENT      M1
IFORMATB       02
I                          StpPARENT      M1
C  01NMR
COR02NMR     DO
..widow or orphan stuff 
C            ENDDO

---------------------------------------------------------
Booth Martin   http://www.MartinVT.com
Booth@xxxxxxxxxxxx
---------------------------------------------------------
 
-------Original Message-------
 
From: RPG programming on the AS400 / iSeries
Date: 11/26/2003 2:15:30 PM
To: rpg400-l@xxxxxxxxxxxx
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.