Article View: comp.os.os2.programmer.oop
Article #7Re: SOM and DB2/2
From: 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
Technical Details
Message-ID:
<3ivvjh$1brf@news-s01.ny.us.ibm.net>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!swiss.ans.net!newsgate.advantis.net!news-m01.ny.us.ibm.net!newsReferences:
<3ikp6i$pmg@status.gen.nz>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10da59,700a1c20ef094d33 X-Google-Attributes: gid10da59,public X-Google-Thread: fecf8,700a1c20ef094d33 X-Google-Attributes: gidfecf8,public X-Google-ArrivalTime: 1995-03-01 09:44:48 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!swiss.ans.net!newsgate.advantis.net!news-m01.ny.us.ibm.net!news From: kpiemo1@ibm.net Newsgroups: comp.os.os2.programmer.oop,bit.listserv.db2-l Subject: Re: SOM and DB2/2 Date: 28 Feb 1995 20:04:01 GMT Lines: 29 Message-ID: <3ivvjh$1brf@news-s01.ny.us.ibm.net> References: <3ikp6i$pmg@status.gen.nz> Reply-To: kpiemo1@ibm.net NNTP-Posting-Host: slip137-77.pt.uk.ibm.net X-Newsreader: IBM NewsReader/2 v1.03