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



Yes it does matter if the file field is unreferenced.
If I reference the individual file fields then the array elements will also
work.
My argument is that just by defining an array over the fields with the
pointer address should be enough.
Or is there some compiler option to say just bring the fields into memory,
such as a don't optimise?

Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



                    "Richard B Baird"
                    <rbaird@esourceconsu       To:     rpg400-l@midrange.com
                    lting.com>                 cc:
                    Sent by:                   Fax to:
                    rpg400-l-admin@midra       Subject:     Re: Basing a field 
on an unreferenced field(s) doesn't work
                    nge.com


                    01/11/2002 10:51 AM
                    Please respond to
                    rpg400-l







Rob,

I'm not quite sure what you're getting at, but if I read your question
right, I believe that it doesn't matter if your file field is unreferenced.
the array IS referenced and it contains the data from the same memory
positions as the data from the input file.  does this make sense?   the
minute you "reference" one of the fields, the value will be there when
needed.

said in another way, All the data from the input file IS in memory and is
made available to the program - it just hasn't been mapped to that
particular field name (yet).    This of course is all conjecture on my
part.   but I do know that the code SHOULD work.

Rick

---original message---
Rob said:
I have this simple RPGLE program:
     fARRAYF    IF   E           K DISK

     d MyVar1          s                   like(keyfld)
     d MyVar2          s                   like(Ary1)
     d MyVar3          s                   like(Ary2)
     d MyVar4          s                   like(Ary3)
<snip, snip>

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


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.