× 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 Jon and Booth.
I was having a senior moment earlier.
I will just define each group as contiguous fields and define the arrays to
overlay them.

Jeff Young
Sr. Programmer Analyst


On Wed, Jul 9, 2014 at 12:48 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

I am not understanding the design choice. Would something like this work
just as well for you?

D GL_Account Like(##AlGl) Dim(10)
D GL_Amount Like(##Bal) Dim(10)
D* ?do you really care? Alt(GL_Account)

D GL_Distribution...
D Ds
D GL_Account(1)
D GL_Amount(1)
D GL_Account(2)
D GL_Amount(2)
|||

||... and so on.


|


On 7/9/2014 10:11 AM, Jeff Young wrote:

All,
I have a DS that contains 20 fields:
GL_Number_01 10A
GL_Account_01 10A


After defining each of the 10 occurrences as sub fields, I then define the
arrays using the following code:
GL_Account Overlay(GL_DS) Dim(10)
GL_Amount Dim(10) Alt(GL_Account)

I am receiving the following error:
RNF3442: The parameter GL_ACCOUNT for keyword ALT is not valid; keyword is
ignored.

What am I missing?


The actual code is at: http://code.midrange.com/012d0ccc4e.htm
<http://code.midrange.com/012d0ccc4e.html>

Jeff Young
Sr. Programmer Analyst


--
Booth Martin
www.martinvt.com
(802)461-5349
Skype: booth.martin

Too much of a good thing is WONDERFUL. -- Mae West

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.