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



rob@dekko.com wrote:
> Can I do the following?  If not, then now do you recommend forming the if
> nest?
>
>       /If not defined(MBRL0310) AND not defined(MBRL0320) AND not
> defined(MBRL0330)
>       * MBRL0300 - QUSLMBR - List Database File Members - Source info
>      D MBRL0300        DS
>       /EndIf

No, you can't code any operators on a /IF directive.

Also, you might want to rethink what you're doing since I suspect
you're trying to do something that's not possible in RPG IV.  When
you code "/IF DEFINED(X)", for the condition to be considered true,
the name X is a name specified either in the DEFINE parameter on the
CRTRPGMOD/CRTBNDRPG command or on the /DEFINE directive.  It does
not refer to any names coded otherwise in the RPG program, and
cannot be used to condition code whether or not a specific variable
name is defined.

(Also, you can also code something like "/IF DEFINED(*V5R1M0)" to
conditionally compile code intended for the specified release or later.)

Cheers!  Hans








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.