Pathmaker Programming Guide

Coding Custom Services
Creating Services and Servers
067868 Tandem Computers Incorporated 4–51
Generating Host Variables
The Pathmaker product uses the information you provide on the Logical File Entries
screen to generate host variables. The Pathmaker product uses the names you enter in
the Logical File Names column to create host variables.
The Logical File Name can match the Table Object Name on the Logical File Entries
screen. In contrast, for COBOL services that access Enscribe files, the Enscribe DDL
record name entered in the DDL Record Name/Table column must be different than
the logical file name entered in the Logical File Name column.
Figure 4-12 lists the code that the Pathmaker product generates from the information
you supply on the Logical File Entries screen.
Figure 4-12. Generating Host Variables
049
Server Generation
SQL table
object name
from the SQL
Table
Registration
screen
DEFINE name
from the
SQL Table
Registration
screen
Logical File Name DDL Record Name/Table
Name
PARTS-HOST PARTS
Logical File Entries
=============================
DATA DIVISION.
EXEC SQL BEGIN DECLARE SECTION END-EXEC
EXEC SQL
INVOKE =PARTS
AS PARTS-HOST
END-EXEC
01 PARTS-HOST
02 COLUMN-1
EXEC SQL END DECLARE SECTION END-EXEC.
COBOL
Compile
Listing
• • •
• • •