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



On 11/1/2012 11:43 AM, Jeff Crosby wrote:

Theoretically, could RPG be enhanced such that the from/to positions are
_not_ hard-coded at compile time? Instead, based on field name (whether
renamed or not), the from/to positions would be established at run time.
If so, one would also have to code updates properly, i.e., either via
"Update RecordName %Fields(blah:blah:blah);" or making sure the O specs
have no end position.

Pretty much anything is _theoretically_ possible. The names and data types of the RPG fields would pretty much have to be frozen at compile time, but it doesn't seem impossible to have the layout of the record be determined at runtime.

But this oculd already be done using Open Access. I don't think it would be that hard to write a generic Open Access handler that could transform data between the compile-time version of the file and the runtime version.

Using the names-values mechanism for I/O, it would only have to figure out the layout of the runtime file. Using the buffer mechanism for I/O, it would have to have figure out the layout of both the compile-time and runtime versions of the file.


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.