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



In a recent thread, there was some question about global variables, etc., when using the MAIN control keyword. I had mentioned that some things still must be global. I believe that one of them is compile-time arrays. If you want to find all the messages that deal with "global", here's a way to do that -

Execute the following command -

DSPMSGD RANGE(*ALL) MSGF(QDEVTOOLS/QRPGLEMSG) DETAIL(*FULL) OUTPUT(*PRINT)

Then you can search for 'lobal' in the spooled file - this covers possible upper- or lower-case "G" in the word "global"

So have fun. And I did find, in the RPG ILE Reference, this note about CTDATA, footnote 2

This keyword applies only to global definitions.

Random musings while on vacation! I know, I'm rubbing it in!
Vern

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.