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



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 07/07/2017 03:22:16
PM:
On Fri, Jul 7, 2017 at 3:12 PM, <dlclark@xxxxxxxxxxxxxxxx> wrote:
I was looking for a more automated way.
RPG supplies the following automated method:

/If defined(*CRTBNDRPG)

But as far as I know does NOT supply the following desired
automated method:

/If defined(*CRTSQLRPGI)

Are these mutually exclusive?

No.

Would there ever be a scenario in which
neither *CRTBNDRPG nor *CRTSQLRPGI are defined (assuming the latter
existed)?

Yes.

If the answer to the first is yes and the second is no, then can you
simply take the negation of *CRTBNDRPG?

There is also *CRTRPGMOD supplied for when using that command.

Also, while Alan's suggestion was "manual", it was *automatably*
manual. (That is, you could write a script to insert the necessary
code into the appropriate members.)

That would be good for one time. When the next program gets
created you are then dependent upon the programmer remembering to insert
this code. That is why something supplied by IBM is more desireable.
However, I also saw the note regarding changing the command options to
supply our own pre-defined conditional compile names. That might be the
solution.

Sincerely,

Dave Clark

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.