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



>CRTSQLRPGI does not have a DEFINE keyword.  
>How can I tell the preprocessor to define BMP 
>when using CRTSQLRPGI?

It's a pain, isn't it?  The precompiler is simply too primitive to support
all the things that the RPG compiler can do.  Don't blame Toronto; the
precompiler is apparently owned by somebody else (the database folks?)
Enough griping...

David Morris made a suggestion some time ago that I am just starting to
implement (as my code becomes more sophisticated <cough>.)  Isolate all the
SQL stuff in a separate service program.  Make it so generic that you don't
need precompiler/compiler directives, etc.  Bind that service program to
your mainline (is there a better name for "the program that uses the
services of a service program?) and then the RPG-only mainline can use all
the tools available without being hampered by the SQL precompiler.

Buck Calabro
Commsoft; Albany, NY
Visit the Midrange archives and FAQ at http://www.midrange.com
"For every complex problem, there is a solution that is simple, neat, and
wrong."
 -- HL Mencken





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.