About this book

The Open Client Embedded SQL/COBOL Programmers Guide 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 and Open 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 Adaptive Server.” The manual is organized as follows:

Related documents

This guide is one of several manuals you will need to have a complete understanding of Embedded SQL and the Embedded SQL precompiler with COBOL applications. Following is a list of the other manuals you may need to consult.

Other sources of information

Use the Sybase Getting Started CD, the SyBooks CD, and the Sybase 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. Click Certification Report.

  3. In the Certification Report filter select a product, platform, and timeframe and then click Go.

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

StepsFinding the latest information on component certifications

  1. Point your Web browser to Availability and Certification Reports.

  2. Either select the product family and product under Search by Base Product; or select the platform and product under Search by Platform.

  3. Select Search to display the availability and certification report for the selection.

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 maintenance

StepsFinding the latest information on EBFs and software maintenance

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

  2. Select EBFs/Maintenance. If prompted, enter your MySybase user name and password.

  3. Select a product.

  4. Specify a time frame and click Go. A list of EBF/Maintenance releases is displayed.

    Padlock icons indicate that you do not have download authorization for certain EBF/Maintenance releases because you are not registered as a Technical Support Contact. If you have not registered, but have valid information provided by your Sybase representative or through your support contract, click Edit Roles to add the “Technical Support Contact” role to your MySybase profile.

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

Conventions

Table 1: Syntax conventions

Key

Definition

command

Command names, command option names, utility names, utility flags, and other keywords are in sans serif font.

variable

Variables, or words that stand for values that you fill in, are in italics.

{ }

Curly braces indicate that you choose at least one of the enclosed options. Do not include braces in your option.

[ ]

Brackets mean choosing one or more of the enclosed items is optional. Do not include brackets in your option.

( )

Parentheses are to be typed as part of the command.

|

The vertical bar means you can select only one of the options shown.

,

The comma means you can choose as many of the options shown as you like, separating your choices with commas to be typed as part of the command.

NoteEmbedded SQL keywords are not case sensitive. You can enter them in uppercase, lowercase, or mixed case. This guide lists Embedded SQL keywords in lowercase.

This distinguishes Embedded SQL statements from COBOL commands, which this guide shows in upper case. For example:

    DISPLAY "PLEASE ENTER USER-ID".

Online help

If you have access to Adaptive 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 Adaptive Server Enterprise 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

Accessibility features

This document is available in an HTML version that is specialized for accessibility. You can navigate the HTML with an adaptive technology such as a screen reader, or view it with a screen enlarger.

Open Client and Open Server documentation has been tested for compliance with U.S. government Section 508 Accessibility requirements. Documents that comply with Section 508 generally also meet non-U.S. accessibility guidelines, such as the World Wide Web Consortium (W3C) guidelines for Web sites.

NoteYou might need to configure your accessibility tool for optimal use. Some screen readers pronounce text based on its case; for example, they pronounce ALL UPPERCASE TEXT as initials, and MixedCase Text as words. You might find it helpful to configure your tool to announce syntax conventions. Consult the documentation for your tool.

For information about how Sybase supports accessibility, see Sybase Accessibility. The Sybase Accessibility site includes links to information on Section 508 and W3C standards.

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.