Pathmaker Programming Guide

Contents
067868 Tandem Computers Incorporated ix
Section 4 Creating Services and Servers
Service and Server Types 4-1
Standard Services and Servers 4-1
Registered Services and Servers 4-2
Custom Services and Servers 4-3
Server Type Summary 4-3
The Structure of Pathmaker Custom Services and Servers 4-4
Custom COBOL85 Servers 4-4
Custom COBOL85 Services 4-8
Custom C Servers 4-11
Defining a Custom Service 4-18
Coding Custom Services 4-21
Custom Source File 4-21
Guidelines for Custom Source Files 4-44
Invoking Macros From a Custom Source File 4-46
Additional Considerations for Coding NonStop SQL Services 4-48
File Error Handling 4-54
Generating NonStop SQL Statements 4-63
SQL Operations Screen 4-63
Operation Attributes Screen 4-64
Usage Considerations for UPDATE Operations 4-64
Usage Considerations for DELETE Operations 4-65
Usage Considerations for INSERT Operations 4-65
Usage Considerations for SELECT Operations 4-65
Usage Considerations for FETCH Operations 4-66
Defining a Custom Server 4-68
Generating Custom Servers 4-70
Server Generation Phases 4-70
C Server Generation 4-71
Files Used to Generate a Server 4-71
Registering Servers Not Created With Pathmaker 4-74
Defining Registered Services 4-74
Defining a Registered Server 4-75
Writing Requester Code to Access a Registered Service 4-75
Supplying Application Configuration Information 4-76