Jim Waymire wrote:
I would like to load a file into an array with one of the fields being a
field name that can then be used in the RPGLE program. Right now I have to
hard code the field name that I want to use for my scan operation. How can
I use the array element name?

For something like that, you might want to consider SQL, rather than conventional record-level access.

Are we talking about what it sounds like we're talking about, accessing files whose structure isn't known at compile-time? If so, then you basically have two problems to solve, if using record-level access: first, you need to open the file as program-described, in order to have full control over where the data goes, and second, you have to get the meta-data from somewhere (QuestView, for example, gets it through various system API calls).

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].