Pathmaker Programming Guide

Creating a Custom Application
Sample Pathmaker Sessions
10–22 067868 Tandem Computers Incorporated
Application Creation Steps The following pages describe the Pathmaker screens you must complete and the steps
outside of the Pathmaker environment that you must take to create, install, and run
the application:
1. Load the DDL dictionary for this project.
From the Pathmaker Main Menu for session 2, press F1 to invoke DDL. From
DDL, enter the following commands replacing XX with your initials (! is the DDL
prompt; you enter the remainder of the command):
!?COBCHECK
!?SOURCE
XX
s2pm.ddlsrc
!EXIT
XXs2pm is the subvolume where you copied DDLSRC.
2. Define CHECK-ORDER service:
a. Enter the basic service information.
From the Pathmaker Main Menu, press F4 to reach the Service Definition
screen. On the first page of this screen, enter the service name
(CHECK-ORDER), Service Type (Custom), Language (COBOL), and a service
description. Enter
Y
if you want the service to be audited by TMF. Enter
N
in
the Embedded SQL field. Enter the name of the Custom Source File,
XXs2pm.SERVCOD1 (replace XX with your initials). Press F1 to add the
service.
XXs2pm is the subvolume where you copied SRVCOD1.
Press F6 to reach the IPC Definition screen.
b. Define the IPC messages.
Enter the DDL names MODEL-NUMBER and QTY-ORDERED in the Request
Reference Object column. Enter the DDL names UNIT-PRICE,
TOTAL-PRICE, and PART-TIMESTAMP in the Reply Reference Object
column. Press F2 to update the screen.
Press F16 to return to the Service Definition screen. Press F7 from the Service
Definition screen to reach the Logical File Entries screen.
c. Specify the logical file names and access mode.
Enter PART-FILE in the Logical File Name column, enter PART-REC in the
DDL Record/Table Object Name column, and enter I in the Open Mode
column. Press F2 to update the screen. Press F16 to return to the Service
Definition screen.