Appendix F: Sample Mixed-Mode Application

This appendix contains a sample COBOL application that uses both Client-Library and Gateway-Library functions. In other words, this program acts as both client and server.

The purpose of this sample program is to demonstrate the use of Gateway-Library functions in a conversational IMS TM program that handles remote procedure calls from a client. In some cases, one Gateway-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 ServerConnect package. Running it requires Open ServerConnect. SYCTSAX5 uses VS COBOL II and Gateway-Library.