TS/MP Pathsend and Server Programming Manual (H06.05+, J06.03+)

B Examples
This appendix shows 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 requester coded in TAL
A context-free Pathsend nested server example coded in COBOL85
Edit files containing the source code for these examples are provided on the site update tape (SUT).
The source code for the Pathsend requester is in the file BREQS; the source code for the nested
server is in the file PATHSRVS.
The examples allow you to see some of the programming concepts, described in previous sections
of this manual, put into practice. These programs, however, require several other files provided
on the SUT to run. You should 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 Requester Example
Example 3 (page 130) BREQ, is a Pathsend context-free requester 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 Requester Example 129