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



Tom:

Have you ever seen or heard of the /IF directive in ILE RPG IV?

e.g.:
/if defined(USE_HANDLER)
FMYDSPF01D CF E WORKSTN HANDLER('MYDSPFHNDLR')
/else
FMYDSPF01D CF E WORKSTN
/endif

Then, on the CRTRPGMOD or CRTBNDRPG command, you specify, e.g.:

CRTBNDRPG ... DEFINE('USE_HANDLER')

when you want to compile the version with the handler, otherwise it defaults to the WORKSTN version.

Hope that helps,

Mark S. Waterbury

> On 3/7/2011 10:05 AM, Tom Deskevich wrote:
I have not been able to find anything on this in my research.

If all you change in your RPG program is to ADD a HANDLER keyword, is there any way to retain one version of the source?
That is, a way you could run the same source with the same WORKSTN file using and not using a handler?

I cannot find a way. /COPY cannot be conditioned that I see. Tried external indicators (I already ate broken glass for even considering this).
Thought maybe could use OVRDSPF file, but did not see a way to do that either.

Thanks. Think Spring!! (unless you are one of those sick people who like cold weather)

Tom Deskevich
INFOCON
814-472-6066
Fax 814-472-5019

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.