INF: COBLIB: .EXE Calling .GNT Files with ESQL for COBOLID: Q73005
|
There is a sample application named COBLIB in the Software/Data Library that shows how to create an Embedded SQL for COBOL MS-DOS application consisting of an .EXE file linked with COBLIB that calls a .GNT file. This method is very useful for large MS-DOS applications because it lessens the memory required to load and execute the application.
The COBLIB sample file consists of source code for DRIVER.CBL and
SQLDOS.CBL. It also includes COMPILE.CMD, which can be used to create
the application. SQLDOS.CBL is the same program that is included in
the Embedded SQL for COBOL Developer's Kit, except that it was
modified to change all "stop run" statements to "exit program"
statements. This allows control to return to DRIVER.EXE.
The basic idea is that DRIVER.EXE makes a call to SQLINTF.EXE to load
the Embedded SQL for COBOL support and then calls SQLDOS.GNT to
actually perform all the Embedded SQL for COBOL statements.
Please note that this requires that the COBPOOL environment variable
be set. Do this by typing "SET COBPOOL=10" at the MS-DOS prompt.
To create a similar OS/2 application, modify the following line in
DRIVER.CBL
CALL "SQLINTF.EXE"
CALL "SQLINTF.DLL"
link driver.obj,,,coblib+cobapi;
link driver.obj,,,coblib+os2;
Keywords : kbprg SSrvCobol SSrvProg
Version : 4.2 | 4.2
Platform : MS-DOS OS/2
Issue type :
Last Reviewed: March 11, 1999