INF: Creating .GNT Files with Embedded SQL for COBOL

Last reviewed: May 5, 1997
Article ID: Q72945

The information in this article applies to:

  - Microsoft Embedded SQL version 4.2 for COBOL

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 "SQLINTF.EXE"

For OS/2, use:

   CALL "SQLINTF.DLL"

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.


Additional query words:
Keywords : kbprg SSrvCobol SSrvProg
Version : 4.2 | 4.2
Platform : MS-DOS OS/2


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.