This appendix contains a sample Open ClientConnect application program, SYCTSAR6, that sends an RPC to either an Adaptive Server Enterprise or Open ServerConnect running in a CICS/IMS region.
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. To best illustrate the flow of processing, the program does not do extensive error checking.
The remote procedure or transaction initiated by this RPC is called SYR2, which uses data from the sample table SYBASE.SAMPLETB.
If your server is an Adaptive Server Enterprise, the remote procedure and table must be created by Transaction Router Service (TRS). A script is provided with TRS that the TRS administrator can use to create SYR2 and the sample table on Adaptive Server Enterprise.
If your remote server is Open ServerConnect, SYR2 and SYBASE.SAMPLETB are provided with the product.
SYCTSAR6 is provided as part of the Open ClientConnect package.