×
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.
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).
As an Amazon Associate we earn from qualifying purchases.
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.