Pathmaker Programming Guide

Modifying a Server Skeleton or Service Skeleton
Advanced Pathmaker Programming Topics
067868 Tandem Computers Incorporated 9–33
Note If you do decide to modify a skeleton, maintenance will be much easier if you surround any changes with
comments that are easy to find with the editor. For example, you could use:
! BEGIN CHANGE
your-initials
! END CHANGE
your-initials
Adding SPECIAL-NAMES
Entries for COBOL Servers
You can insert your own SPECIAL-NAMES entries into the SPECIAL-NAMES
paragraph of the COBOL85 server skeleton.
For example, if you want to change the default currency symbol ($) to a different
symbol, you can insert a CURRENCY SIGN IS clause into the SPECIAL-NAMES
paragraph. Assume that you want the currency symbol in your application to be a
pound sign (#). You would alter the server skeleton as follows:
SPECIAL-NAMES.
SYMBOLIC T9154-BINARY-ZERO IS 1.
CURRENCY SIGN IS "#". <-- Add this line.
*
INPUT-OUTPUT SECTION.
The COBOL85 Reference Manual lists valid values for the CURRENCY SIGN IS clause
and other possible SPECIAL-NAMES entries.
Including Additional
Libraries for C Services
You can add statements to include additional libraries in the C service skeleton. You
could alter the C service skeleton as follows:
#include <stddef.h> nolist
#include <stdio.h> nolist <-- You could add this line.
#include <string.h> nolist <-- You could add this line.
#include "$#Project-Subvol$.PMSVCULH" nolist
Rewriting and Reformatting
Existing Error Messages
You can rewrite or reformat error messages for servers generated by the Pathmaker
product. If you want to tailor messages for a specific service, you can write error
handling code in the Custom Source File of the service. See “File Error Handling” in
Section 4 for more information.
This subsection tells you how to:
Rewrite and reformat existing Enscribe messages in the COBOL server skeleton
Rewrite existing messages in the C server skeleton
Rewrite and reformat existing messages for C servers in the service utility library
file PMSVCULC
Later subsections, “Modifying the COBOL Server Skeleton for NonStop SQL
Applications” and “Modifying PMSVCULC for C NonStop SQL Applications” explain
how to rewrite or reformat error messages for Pathmaker servers that use NonStop
SQL.