TS/MP 2.5 Pathsend and Server Programming Manual

B Examples
This appendix illustrates the source code for two example programs designed to help you understand
how to write Pathsend programs and Pathway servers. These examples are included:
A context-free Pathsend requestor coded in TAL
A context-free Pathsend nested server example coded in COBOL85
Edit files which contain the source code for these examples are provided on the site update tape
(SUT). The source code for the Pathsend requestor is in the file BREQS; the source code for the
nested server is in the file PATHSRVS.
The examples allow you to see the implementation of some of the programming concepts, described
in previous chapters of this manual. These programs, however, require several other files provided
on the SUT to run. you must read the file README (located on the SUT) carefully before attempting
to run these programs.
NOTE: The program examples included in this manual and on the SUT are for reference purposes
only and are intended to illustrate usage of Pathsend procedures. The program examples are not
intended to form the basis of production programs. The examples do not demonstrate the definitive
way to write Pathsend programs. There are other methods that might be more suitable for your
requirements or application.
Pathsend Requestor Example
BREQ Example 3 (page 136), is a Pathsend context-free requestor program coded in TAL. BREQ
issues nowait SERVERCLASS_SEND_ calls to two server-classes. The program demonstrates how
to write a Pathsend program that issues nowait SERVERCLASS_SEND_ calls to two servers and
waits for successful completion of both send operations before committing the transaction.
Pathsend Requestor Example 135