Appendix B: Sample RPC Application

This appendix contains a sample Open ClientConnect application program, SYCTSAR4, that sends an RPC to either Open ServerConnect or Adaptive Server Enterprise.

The purpose of this sample program is to demonstrate the use of Client-Library functions, particularly those designed to send RPC 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.

The remote procedure or transaction initiated by this RPC is called SYR2. SYR2 uses data from the sample table SYBASE.SAMPLETB.

SYCTSAR4 is provided as part of the Open ClientConnect package.