INF: Linking Embedded SQL for COBOL MS-DOS Apps with COBLIB

Last reviewed: May 5, 1997
Article ID: Q72944

The information in this article applies to:

  - Microsoft Embedded SQL version 4.2 for COBOL

SUMMARY

It is possible to create an Embedded SQL for COBOL application that links with COBLIB and COBAPI and runs under MS-DOS.

MORE INFORMATION

To do this with the SQLDOS program example shipped with the Embedded SQL for COBOL Developer's Kit, change the SQLDOS NMAKE file so that it links with COBLIB instead of LCOBOL. Change the link line from

link sqldos.obj+sqlinit.obj+mfc6intf+c6doslb,,,lcobol+cobapi+llibcer+\

   sqlakd+rldblib /NOE /NOD /NOF /NOP;

to the following:

link sqldos.obj+sqlinit.obj+mfc6intf+c6doslb,,,coblib+cobapi+llibcer+\

   sqlakd+rldblib /NOE /NOD /NOF /NOP;

NOTE: This will require the environment variable COBPOOL to be set before running this program under MS-DOS. To do this, type "SET COBPOOL=10" (without the quotation marks) at the MS-DOS prompt. For more information about the COBPOOL environment variable, consult your "Microsoft COBOL Operating Guide" or query on the following words:

   PRB: and R6009 and environment and space and ESQL and COBOL


Additional query words:
Keywords : kbprg SSrvCobol SSrvProg
Version : 4.2
Platform : MS-DOS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.