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



What I did was set 4 variables:
Loop Count
Start Subfile Record 1
Start Subfile Record 2
Start Subfile Record 3

I initialized Start Record 1 with a value of 0, Start Record 2 with a value of 15 and Start Record 3 with a value of 30.

In my read/load loop,increment the Loop Count by 1.  Reset to 1 if > 3. If the Loop Count was 1, I incremented Start Record 1 by 1 and loaded that into the Subfile Record Number.  Same for Loop Count 2 and 3 with the corresponding Start Record.

As I indicated, this was an adaptation of one of the solutions suggested in response to my original post.

Thanks again to all who responded.
 
Jeff Young
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2 
IBM  Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3
IBM  Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3
  
 






________________________________
From: Charles Wilt <charles.wilt@xxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, September 17, 2009 11:17:56 AM
Subject: Re: Formula for loading subfile with multiple records across

On Thu, Sep 17, 2009 at 11:03 AM, Jeff Young <cooljeff913@xxxxxxxxx> wrote:

With help of one of the responders, I have worked out a method to do this.


Care to share the method you choose?

Charles

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.