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