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



I do this all the time:

     D/if defined(need_sqlca)
     D/copy #cb_sqlca
     D/endif

to copy in the sqlca when using Code/400's verifier on an sqlrpgle member.

(#cb_sqlca contains the sqlca data structure)

This sounds like what you're trying to do.

Phil


> -----Original Message-----
> From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On
> Behalf Of James Rich
> Sent: Monday, August 13, 2001 7:51 PM
> To: rpg400-l@midrange.com
> Subject: if defined syntax in sql rpg?
> 
> 
> I need to use the following in an sql-rpg program (created with
> CRTSQLRPGI):
> 
> F/if defined(BMP)
> F/define USE_NUM_COLOC
> F/endif
> 
> later in the calcs USE_NUM_COLOC is used to conditionally compile an SQL
> portion of the program.  The BMP define needs to be defined by the
> compiler.  When compiling non-sql rpg programs this is no problem - the
> DEFINE keyword on the CRTRPGMOD and CRTBNDRPG commands does this.  But
> CRTSQLRPGI does not have a DEFINE keyword.  How can I tell the
> preprocessor to define BMP when using CRTSQLRPGI?
> 
> James Rich
> james@eaerich.com
> 
> _______________________________________________
> RPG400-L mailing list
> RPG400-L@midrange.com
> http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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.