Chapter 1: Open ClientConnect Processing


About this book

The Mainframe Connect Client Option Programmer’s Reference for C contains reference information for the C version of Open ClientConnect™ Client-Library.

NoteThe Open ClientConnect Client-Library™ is a subset of the generic Sybase® Client-Library.

This chapter includes the following topics:

Audience

The Mainframe Connect Client Option Programmer’s Reference for C is a reference manual for mainframe programmers who write client applications in the C programming language using Open ClientConnect Client-Library.

This manual assumes that the programmer is familiar with the C programming language and knows how to write programs under either CICS or IMS TM. This book does not contain instructions for writing C programs. Rather, it describes the functions that can be called within your C programs to enable them to communicate with remote servers.

Product name changes

The following table describes new names for products in the 12.6 release of the Mainframe Connect Integrated Product Set.

Old product names

New product name

  • Open ClientConnect for CICS

  • Open ClientCONNECT for CICS

Mainframe Connect Client Option for CICS

  • Open Client Connect for IMS and MVS

  • Open ClientCONNECT for IMS and MVS

Mainframe Connect Client Option for IMS and MVS

  • Open ServerConnect for CICS

  • Open ServerCONNECT for CICS

Mainframe Connect Server Option for CICS

  • Open ServerConnect for IMS and MVS

  • Open ServerCONNECT for IMS and MVS

Mainframe Connect Server Option for IMS and MVS

  • MainframeConnect™ for DB2 UDB

  • MainframeCONNECT for DB2/MVS-CICS

Mainframe Connect DB2 UDB Option for CICS

  • DirectConnect™ for OS/390

  • DirectCONNECT for DB2/MVS

DirectConnect for z/OS

The old product names are used throughout this book, except for on the title page.

NoteThis book also uses the terms MVS and OS/390 where the newer term z/OS would otherwise be used.

How to use this book

Table 1 shows where to find the information you need in this book.

Table 1: Chapter descriptions

Chapter

Contents

Chapter 1, “Open ClientConnect Processing”

An overview of Open ClientConnect including discussion of different kinds of client requests and explanations of how Open ClientConnect programs process them.

NoteEveryone who writes programs using Open ClientConnect should read this chapter.

Chapter 2, “Topics”

Descriptions of Gateway-Library™ concepts, and information on how to accomplish specific programming tasks.

This chapter discusses tasks, resources, and other topics that the application programmer needs to understand to write Gateway-Library applications. It includes a detailed discussion of the Gateway-Library cursor, dynamic SQL and Japanese language support and a list of supported datatypes and models for structures used to store data.

Chapter 3, “Functions”

Reference pages for each Gateway-Library function. Each function description contains sections on functionality, syntax, explanatory comments and related functions, as well as an example.

Appendix A, “Sample Language Application”

A sample C application program that processes client language requests under CICS.

Appendix B, “Sample RPC Application”

A sample C application program that processes client RPC requests under CICS.

Appendix C, “Sybase Product Documentation”

A list and description of all relevant Sybase product documentation.

Related documents

For a complete list and description of all related documents, see Appendix C, “Sybase Product Documentation.”

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 maintenance

StepsFinding the latest information on EBFs and software maintenance

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

  2. Select EBFs/Maintenance. 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/Maintenance report, or click the product description to download the software.

Conventions

This section describes the syntax and style conventions used in this book.

NoteThroughout this book, all references to Adaptive Server™ Enterprise also apply to its predecessor, SQL Server®. Also, Adaptive Server Enterprise (ASE) and Adaptive Server (AS) are used interchangeably.

Open ClientConnect uses eight-character function names, while other versions of Client-Library use longer names. This book uses the long version of Client-Library names with one exception: the eight-character version is used in syntax statements. For example, CTBCMDPROPS has eleven letters. In the syntax statement, it is written CTBCMDPR, using eight characters. You can use either version in your code.

Table 2 explains syntax conventions used in this book.

Table 2: Syntax conventions

Symbol

Explanation

( )

Parentheses indicate that parentheses are included as part of the command.

{ }

Braces indicate that you must choose at least one of the enclosed options. Do not type the braces when you type the option.

[ ]

Brackets indicate that you can choose one or more of the enclosed options, or none. Do not type the brackets when you type the options.

|

The vertical bar indicates that you can select only one of the options shown. Do not type the bar in your command.

,

The comma indicates that you can choose one or more of the options shown. Separate each choice by using a comma as part of the command.

Table 3 explains style conventions used in this book.

Table 3: Style conventions

This type of information

Looks like this

Gateway-Library function names

TDINIT, TDRESULT

Client-Library function names

CTBINIT, CTBRESULTS

Other executables (DB-Library routines, SQL commands) in text

the dbrpcparam routine, a select statement

Directory names, path names, and file names

/usr/bin directory, interfaces file

Variables

n bytes

Adaptive Server datatypes

datetime, float

Sample code

01 BUFFER PIC S9(9) COMP SYNC. 01 BUFFER PIC X(n).

User input

01 BUFFER PIC X(n)

Client-Library and Gateway-Library function argument names

BUFFER, RETCODE

Client-Library function arguments that are input (I) or output (O)

COMMAND – (I) RETCODE – (O)

Names of objects stored on the mainframe

SYCTSAA5

Symbolic values used with function arguments, properties, and structure fields

CS-UNUSED, FMT-NAME, CS-SV-FATAL

Client-Library property names

CS-PASSWORD, CS-USERNAME

Client-Library and Gateway-Library datatypes

CS-CHAR, TDSCHAR

All other names and terms appear in this typeface.

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.





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 1: Open ClientConnect Processing

View this book as PDF