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



Just a haphazard guess sflpag is 1... 


Thanks,
Tommy Holden


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joe Pluta
Sent: Wednesday, December 28, 2005 9:36 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Why does this loop only pick up the first rec of a group

There is a lot of information missing from your post, and perhaps a
couple
of misconceptions.

First, why do you think we need to know about the KLIST asbkey?  It is
not
used in your code, so it's irrelevant to the problem.

Second, at the very minimum we would have to know the contents of
sflpag, as
well as the code that initially positions the mllc1wb file (if any).  It
would probably be good to see the line of code that defines rrn1 to be
the
subfile record number for sfl1, as well, but we can take your word for
that
one.

Finally, it would be nice to know WHICH record was written to the
subfile.

Joe


> From: steema@xxxxxxxxxxxxx
> 
> the file has records as such:
> 
> 50079       1           1             60,239,717           1
(...)
> 50079       1           1             60,239,723           7
>
..
> 
> C                   do        sflpag
> C                   read      mllc1wb
90
> C                   if        *in90
> C                   leave
> C                   endif
> C                   eval      rrn1 = rrn1 + 1
> C                   eval      option = *blank
> C                   write     sfl1
> C                   enddo
> 
> Yet the subfile only loads the first record



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.