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



Thanks Rick.

I was already using the LIKE keyword for the array, and the actual field
names in the data structure.

Jim

On Thu, Sep 30, 2010 at 1:14 PM, <Rick.Chevalier@xxxxxxxxxxxxxxx> wrote:

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