Pathmaker Programming Guide
The Structure of Pathmaker Custom Services and Servers
Creating Services and Servers
4–6 067868 Tandem Computers Incorporated
Figure 4-1 illustrates the structure of a COBOL85 Pathmaker server and the services it
contains.
Figure 4-1. Structure of a Pathmaker COBOL85 Server Procedure Division
OPEN shared files
PERFORM all service setup paragraphs
PERFORM UNTIL server is closed
 READ $RECEIVE
 Call Service Subprogram
 REPLY ON $RECEIVE
PERFORM all service cleanup paragraphs
CLOSE shared files
041
MAIN PROGRAM
PROCEDURE DIVISION.
Service 1 Subprogram
Includes code from Custom 
Source File for this service, 
expansion of invoked macros, 
and any generated SQL IO 
sections.
Service 2 Subprogram
Includes code from Custom 
Source File for this service, 
expansion of invoked macros, 
and any generated SQL IO 
sections.
• • •










