About this book

The Open Client Embedded SQL/COBOL Programmer’s Manual explains how to use Embedded SQL and the Embedded SQL precompiler with COBOL applications. Embedded SQL is a superset of Transact-SQL® that lets you place Transact-SQL statements in application programs written in languages such as COBOL and C.

The information in this guide is platform-independent. For platform-specific instructions on using Embedded SQL, see the Open Client/Server Programmer’s Supplement.

Audience

This guide is intended for application developers and others interested in Embedded SQL concepts and uses. To use this guide, you should:

How to use this book

The first two chapters of this guide are introductory. If you are an experienced Embedded SQL user, you may go directly to Chapter 3, “Communicating with SQL Server.” The manual is organized as follows:

Other sources of information

Use the Sybase Getting Started CD, the Sybase Technical Library CD, and the Technical Library Product Manuals Web site to learn more about your product:

Sybase certifications on the Web

Technical documentation at the Sybase Web site is updated frequently.

StepsFinding the latest information on product certifications

  1. Point your Web browser to Technical Documents.

  2. Select Products from the navigation bar on the left.

  3. Select a product name from the product list and click Go.

  4. Select the Certification Report filter, specify a time frame, and click Go.

  5. Click a Certification Report title to display the report.

StepsCreating a personalized view of the Sybase Web site (including support pages)

Set up a MySybase profile. MySybase is a free service that allows you to create a personalized view of Sybase Web pages.

  1. Point your Web browser to Technical Documents.

  2. Click MySybase and create a MySybase profile.

Sybase EBFs and software updates

StepsFinding the latest information on EBFs and software updates

  1. Point your Web browser to the Sybase Support Page.

  2. Select EBFs/Updates. Enter user name and password information, if prompted (for existing Web accounts) or create a new account (a free service).

  3. Select a product.

  4. Specify a time frame and click Go.

  5. Click the Info icon to display the EBF/Update report, or click the product description to download the software.

Conventions

This section describes font style and naming conventions used in this book.

Online help

If you have access to SQL Server release 10.0 or later, you can use sp_syntax, a system procedure, to retrieve the syntax of Embedded SQL statements. For information on how to install sp_syntax, see the System Administration Guide. For information on how to run sp_syntax, see sp_syntax in the SQL Server Reference Manual.

NoteWhen using sp_syntax to retrieve a statement’s syntax, enclose the procedure name in quotation marks. For example, to get a display of the syntax for the exec sql statement, enter this command: sp_syntax “exec sql”

If you need help

Each Sybase installation that has purchased a support contract has one or more designated people who are authorized to contact Sybase Technical Support. If you cannot resolve a problem using the manuals or online help, please have the designated person contact Sybase Technical Support or the Sybase subsidiary in your area.