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



Joep, your message arrived here with a creation date of 8-23-2000. I
thought I'd let you know.

Joep Beckeringh wrote:

>Patrick,
>
>When you overlay an array, the result is automatically an array as well.
>What you can do is this:
>
>D                 ds
>DPdLb_fld
>DPdLb01                               Overlay(PdLb_fld:*NEXT)
>DPdLb02                               Overlay(PdLb_fld:*NEXT)
>DPdLb03                               Overlay(PdLb_fld:*NEXT)
>DPdLb                                 Like(PdLb01) Overlay(PdLb_fld) Dim(3)
>
>You create a dummy field that contains the array (I think the compiler
>calculates the length for you).  You make the individual fields overlay the
>dummy field; you don't have to supply the definition if they are defined
>elsewhere (externally described file); by using *NEXT you don't have to
>worry about the positions either.  Lastly you create an array that overlays
>the dummy field (and thus the individual fields) by not specifying *NEXT or
>a position (or by specifying ':1').
>
>Joep Beckeringh
>
>
>----- Original Message -----
>From: <PatrickConner@parkdalemills.com>
>To: <rpg400-l@midrange.com>
>Sent: Thursday, August 23, 2001 10:06 PM
>Subject: Externally-Described Field used as array name.
>
>
>>D                 ds
>>DPdLb                                 Like(PdLb01) Dim(3)
>>DPdLb01                               Overlay(PdLb)
>>DPdLb02                               Overlay(PdLb:8)
>>DPdLb03                               Overlay(PdLb:15)
>>
>>
>>   932=I                             S   60   66 0WK1AVL
>>   933=I                             S   67   73 0PDLB02
>>======>                                           aaaaaaaaaaaaaa
>>*RNF4138 30 a      000016  Externally-Described Field used as array name.
>>Definition
>>                           specification is ignored.
>>   934=I                             S   74   80 0WK2SHP
>>
>>
>>Why?
>>
>>I think I understand that it is a memory address thing, but I'd like an
>>clear explanation.
>>
>>Patrick Conner
>>www.ConnecTown.com
>>(828) 244-0822
>>
>
>
>
>_______________________________________________
>This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
>To post a message email: RPG400-L@midrange.com
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
>or email: RPG400-L-request@midrange.com
>
>

--
Chris Rehm
javadisciple@earthlink.net
If you believe that the best technology wins the
marketplace, you haven't been paying attention.





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.