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



dickjaz@xxxxxxx wrote:
I am helping a customer "modernize" their RPG II code. They use a
lot of TAB01/TAB02 type look ups. ...
... I would like to get rid of the '**' loads.

Dick, I assume you want to keep them as tables.

Rather than just use the ** form for the CTDATA, use this form:
**CTDATA TAB01
That gives you more control over which data goes with which table or array. If you use just **, you have to ensure that your tables and arrays never get out of the original order in the D specs.

The alternative to the ** loads is to use FROMFILE. In some ways FROMFILE _could_ be considered more modern, since it allows you to dynamically control the content of the table elements; that could be useful if you wanted to pick up different versions of the tables say for different translations of the text. But using FROMFILE doesn't really allow for any other flexibility such as the number of elements, and it adds a bit of complexity since there is one more file that has to be available at runtime.


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.