Microsoft KB Archive/72945

= INF: Creating .GNT Files with Embedded SQL for COBOL =

PSS ID Number: 72945

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 Q72945



SUMMARY
It is possible to create .GNT files for use with the Micro Focus resident run-time system that include Embedded SQL for COBOL code.



MORE INFORMATION
To modify the SQLDOS program example shipped with the Embedded SQL for COBOL Developer's Kit for use under MS-DOS as a .GNT file, add the following line directly after the PROCEDURE DIVISION header:

CALL &quot;SQLINTF.EXE&quot;

For OS/2, use:

CALL &quot;SQLINTF.DLL&quot;

This will load the Embedded SQL for COBOL support into the Micro Focus resident run-time system. To compile this code into a .GNT file, use the following compiler syntax for either MS-DOS or OS/2:

COBOL sqldos.cbl sql nosqlaccess nosqldb nosqlpass nosqlinit OMF(GNT);

The program is then executed with the Micro Focus Toolset command RUN SQLDOS in either MS-DOS or OS/2. Please note that under MS-DOS, this assumes that the COBPOOL environment variable is set to at least 10. This can be done by typing SET COBPOOL=10 at the MS-DOS or Micro Focus prompt.

Keywords: kbprogramming KB72945

Technology: kbAudDeveloper kbSQLEmCOBOL kbSQLServSearch kbZNotKeyword3

-

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

© Microsoft Corporation. All rights reserved.