Microsoft KB Archive/72944

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

PSS ID Number: 72944

Article Last Modified on 10/3/2003

-

The information in this article applies to:


 * Microsoft Embedded SQL for COBOL 4.2

-



This article was previously published under Q72944



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 &quot;SET COBPOOL=10&quot; (without the quotation marks) at the MS-DOS prompt. For more information about the COBPOOL environment variable, consult your &quot;Microsoft COBOL Operating Guide&quot; or query on the following words:

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

Keywords: kbprogramming KB72944

Technology: kbAudDeveloper kbSQLEmCOBOL kbSQLServSearch kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.