Pathmaker Programming Guide

The Structure of Pathmaker Custom Services and Servers
Creating Services and Servers
067868 Tandem Computers Incorporated 4–9
Figure 4-3 illustrates the contents of a custom COBOL85 service that has been
generated by the Pathmaker product.
Figure 4-3. Contents of a COBOL85 Custom Service
Service 1 Subprogram
Identification Division.
Environment Division.
Data Division.
Working-Storage Section.
Global Working-Storage items: “Include SQLCA”, 88 levels, Host Variables
Working-Storage items you add to Custom Source File
for this service.
Linkage Section.
IPC Messages.
Procedure Division.
Open local files.
Do Service.
Close local files.
Procedure Division code you add to the Custom Source File
for this service including PERFORMs of Pathmaker generated SQL IO
sections, expansion of Pathmaker macros you invoke, and setup and
cleanup paragraph code.
Error handling code for major errors.
Pathmaker
Generates
Pathmaker
Generates
Pathmaker
Generates
043
You
Provide
You
Provide
• • •
• • •
• • •
• • •