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

ID: Q72944


The information in this article applies to:
  • Microsoft Embedded SQL for COBOL, version 4.2


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 

Keywords : kbprg SSrvCobol SSrvProg
Version : 4.2
Platform : MS-DOS
Issue type :


Last Reviewed: March 11, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.