Thread View: comp.os.os2.programmer.oop
3 messages
3 total messages
Started by A J Cullen
Fri, 24 Feb 1995 14:07
SOM and DB2/2
Author: A J Cullen
Date: Fri, 24 Feb 1995 14:07
Date: Fri, 24 Feb 1995 14:07
14 lines
1331 bytes
1331 bytes
Hello, I would like to use embedded SQL in a SOM environment. I've read the DB2/2 docs dealing with SQLPREP and the SOM compiler docs and I can't see a solution for the following problem: The SOM compiler insists on generating an output file with a .C prefix (builds a C file for input to C compiler). I'd like to input this file to the SQLPREP DB2/2 precompiler, but it wants to output filename.C as well. Anyone successfully using DB2 precompiler with SOM-II under OS/2? Thanks for any help or workarounds. Cheers, Andrew Cullen
Re: SOM and DB2/2
Author: bohdan
Date: Mon, 27 Feb 1995 21:52
Date: Mon, 27 Feb 1995 21:52
12 lines
1293 bytes
1293 bytes
In article <3ikp6i$pmg@status.gen.nz> acullen@iconz.co.nz (A J Cullen) writes: > >The SOM compiler insists on generating an output file with a .C >prefix (builds a C file for input to C compiler). I'd like to input >this file to the SQLPREP DB2/2 precompiler, but it wants to output >filename.C as well. Hello... I'm not familiar with the SOM side, but after the SOM compiler generates a .C file, could this be renamed to .SQC and then put through the DB2/2 SQLPREP? Thanks... Bo Taramina... DB2 Client/Server Support
Re: SOM and DB2/2
Author: kpiemo1
Date: Tue, 28 Feb 1995 20:04
Date: Tue, 28 Feb 1995 20:04
29 lines
1999 bytes
1999 bytes
In <3ikp6i$pmg@status.gen.nz>, acullen@iconz.co.nz (A J Cullen) writes:
>Hello,
> I would like to use embedded SQL in a SOM environment.
>I've read the DB2/2 docs dealing with SQLPREP and the SOM compiler
>docs and I can't see a solution for the following problem:
>
>The SOM compiler insists on generating an output file with a .C
>prefix (builds a C file for input to C compiler). I'd like to input
>this file to the SQLPREP DB2/2 precompiler, but it wants to output
>filename.C as well.
>Anyone successfully using DB2 precompiler with SOM-II under OS/2?
>Thanks for any help or workarounds.
Andrew,
I face the same problem. I havent already started with implementing a solution
but I plan to include the function in IDL the following way:
#ifndef CPP_GEN
int sql_func();
#endif
If I generate the CPP (or C) file I will explicit define the CPP_GEN label which
prevents the function stub to be generated. The header files for usage and
implementation will define the method.
All I have now to do is write the stub for the method into the .SQC file, compile
and link it with the method file.
I will start work on that in a few days and will then see how it works. I think
however it could work that way.
Regards, Klaus
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads