|
That would be the offset to the start of the first amount field.
BTW, as Charles pointed out, it would be better to define the array fields
using the LIKE keyword.
Rick
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jim Essinger
Sent: Thursday, September 30, 2010 1:51 PM
To: RPG programming on the IBM i / System i
Subject: Re: Loading an array from multiple fields in a record
Is StartOfAmts the field name, or an offset value?
On Thu, Sep 30, 2010 at 12:18 PM, <Rick.Chevalier@xxxxxxxxxxxxxxx> wrote:
Jim,
I didn't see this mentioned so I'll throw it out.
D InputFileDS ds ExtName(InputFile)
D AmtArray 7p 2 Dim(24) Overlay(InputFileDS
:StartOfAmts)
Read InputFile InputFileDS
Or
Chain Key InputFile InputFileDS
This will cause your input record to be read straight into the DS and
populate the array at the same time.
HTH,
Rick
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.