Appendix A: Sample Language Application

This appendix contains a sample Open ClientConnect program that sends a language request to an Adaptive Server Enterprise. It retrieves information from a table, SYBASE.SAMPLETB, on the target server.

The purpose of this sample program is to demonstrate the use of Client-Library functions, particularly those designed to send language requests. In some cases, one Client-Library function is used for demonstration purposes when another function would be more efficient. In order to best illustrate the flow of processing, the program does not do extensive error checking.

This sample program is provided as part of the Open ClientConnect package, on the API. When the target sever is an Adaptive Server Enterprise, the Transaction Router Service (TRS) administrator can create the table SYBASE.SAMPLETB on that server with a script provided with TRS.

An additional sample program, SYCTSAL4, is provided as part of the Open ClientConnect package on the API. (It is not documented in this guide.) The SYCTSAL4 program demonstrates how to send a language request with parameters to an Adaptive Server Enterprise or Open ServerConnect running in a CICS/IMS region. The table SYBASE.SAMPLETB is provided on the Open ServerConnect API.