Pathmaker Programming Guide
The Structure of Pathmaker Custom Services and Servers
Creating Services and Servers
4–16 067868 Tandem Computers Incorporated
If the Pathmaker product does not encounter any errors during generation or
compilation, the message
Generation successful
is displayed in the Last
Attempted Generation Message field the next time you list the Service Definition
screen for this service.
The Pathmaker product uses the generated source file as the primary input file when
compiling a C service. C services can be generated and compiled separately outside of
any server or they can be generated and compiled as part of a server generation and
compile operation. In either case, a separate nonrunnable object file is created for each
C service compiled. Figure 4-6 illustrates the contents of a generated C service.
Figure 4-6. Contents of a Generated C Service
Service 1 Function
%invoke <macro-name>
(This macro can contain typedefs and defines for this service.)
%invoke for C code you add to the Custom Source File
for this service including expansion of Pathmaker registered macros
you invoke.
046
#include
typedef <request and reply structures>
#define <Pathmaker variables, common Enscribe and
SQL error codes, strings for converting
between COBOL and C, and so on>
Pathmaker
Generates
You
Provide
• • •