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



>Is there some reason the regular RPG preprocessor 
>can't be run before the SQL preprocessor - or the 
>SQL preprocessor be taught about preprocessor
>macros?!?!?!?!

Yes; there have been several threads on this topic in the past.  The bottom
line is that there are two development groups at work here, and they don't
operate on the same schedule, so to speak.

>>Isolate all the SQL stuff in a separate service program.  
>>Make it so generic that you don't need precompiler/compiler 
>>directives, etc.  

>The problem is that I need to chose between two different 
>SQL statements.  The idea here is that our code should 
>be portable across different customers.  I need different 
>select statements depending on whose machine I am 
>compiling on.  So I have:
>
>C/if defined(USE_NUM_COLOC)
>   <use numeric comparison in select>
>C/else
>   <use alpha comparison in select>
>C/endif
>
>Other than that little select statement the rest of the 
>program is identical to all our other customers' versions.  

You have several ways round this.  Build two internal functions: a numeric
function and an alpha function.  Wrap them in a "get this data" function.
THAT function can query a system constant which you configure (by customer)
and call the proper "internal" function.

You can also investigate CLI http://www.as400.ibm.com/db2/clifaq.htm

Midrange Computing did an article in Dec 99 called "picklists on the fly"  I
have the save file for their library.

Buck


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.