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



Mark S. Waterbury wrote:
Compile any valid source, such as QGPL/QRPGLESRC member PROOF with CRTBNDRPG to test ILE RPG IV compiler, and compile QGPL/QRPGSRC member PROOF with CRTRPGPGM to test the "legacy" (RPG/400) compilers. If you MONMSG these CRTxxx commands (assuming you run this test from within a CL program), those commands should throw an escape message if the license is expired.

I'd rather I didn't have to depend on any particular source member being there, unless it was one the application actually owned, since some schmuck might have deleted QGPL/QRPGLESRC.PROOF.

So I tried a test program attempting to compile from a display file, rather than a source PF (something obviously guaranteed to fail). Unfortunately, while the joblog messages were different, the PGSDS came back with RNS9310 regardless of whether the failure was the result of the compiler failing to find the member, or the compiler being disabled (correct me if I'm wrong, but I don't appear to have any easy way to test the "complier not even installed" case). And on the box with the disabled compiler, I still got RNS9310 even if I specified OPTION(*NOGEN).

But that led me to another idea: what if I did a *NOGEN, but with a source member guaranteed to exist, but not guaranteed to contain valid RPG source?

It works. Better than expected. Even if I give it a DDS source member, if the compiler is there, and working, if I do OPTION(*NOGEN) OUTPUT(*NONE), it comes back without an exception if the compiler is working, but throws one if it's disabled, and it doesn't litter the user's spool files with pure-bovine-scat source listings.

--
JHHL

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.