Pathmaker Programming Guide
Defining Data for a Pathmaker Project
Preparing for Pathmaker Application Development
067868 Tandem Computers Incorporated 2–25
Documenting Enscribe
Data
When creating Pathmaker applications that use Enscribe, you can document the
design of the data by creating an EDIT file called a schema. The schema contains
Enscribe DDL language statements as follows:
DEF statements that describe elementary data items, group data items (fields in
records, components of messages not specified elsewhere, screen-only fields,
working storage definitions, and linkage section definitions)
DEF statements that describe data items in a record
RECORD statements that describe file structures
For an application accessing Enscribe files, the schema can be used as input for
creating the physical database, describing data to a Pathmaker project, and creating
programming language statements that application developers can incorporate into
services they write.
Following is an example of the contents of an Enscribe DDL schema:
DEF ENGINE-NUMBER PIC X(8).
DEF LICENSE-PLATE PIC X(6) UPSHIFT
HEADING "License Plate".
DEF MAKE PIC X(12) UPSHIFT.
DEF MODEL PIC X(12) UPSHIFT.
DEF PERSON-ID PIC 9(10) HEADING "Person ID Number"
HELP "10 digit Person"
"Identification Number for"
"example;1234567890.".
DEF REGISTRATION-DATE PIC 9(6) HEADING "Registration Date"
"(YYMMDD)"
MUST BE 000101 THRU 991231.
DEF SALES-PRICE PIC 9(9) EDIT-PIC "ZZZ,ZZZ,ZZ9"
MUST BE 1 THRU 999999999
HELP "The sales price entered"
"must be greater than zero;"
"enter dollar amount only.".
DEF VEHICLE-TYPE PIC 9(2) MUST BE 01, 02
HELP "Enter one of the"
"following: 01 for private"
"vehicle; 02 for public"
"vehicle"
VALUE 01.
DEF YEAR PIC 9(4) MUST BE 1900 THRU 2099.
?SECTION VEHICLE-RECORD-DEF
DEF VEHICLE-RECORD-DEF.
02 LICENSE-PLATE TYPE *.
02 VEHICLE-TYPE TYPE *.
02 YEAR TYPE *.
02 MAKE TYPE *.