Elements; Text Items - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

Dictionary Database Structure
DDL assigns each object a unique object number for identification. Object numbers are
assigned in ascending order and are never reused. When an object is removed from
the dictionary, all references to its object number are also removed.

Elements

Definitions and records can contain one or more elements. For example, a single-field
definition contains a single element; a record or group definition contains an element
for itself and additional elements for each field description within the record or group
definition.
DDL assigns each element a unique element number for identification. In the following
example, the DEFINITION statement describes an object that contains a single
element. The RECORD statement describes another object that contains six elements,
one for the entire record and five for the five fields in the record.
Object
Object

Text Items

Text items can contain any text associated with an object. A text item can be one of the
following five types:
Number
String
Keyword
Enumeration
National
International
The dictionary stores all of the text items associated with each statement in a text file.
Each text item is uniquely identified by a text ID number. A single text item can consist
of a list of several lines of text; the list is ordered by element number.
Data Definition Language (DDL) Reference Manual—426798-002
DEF partnum
PIC 999.
RECORD parts.
02 partnum
TYPE *.
02 partname
PIC X(18).
02 inventory PIC 999.
02 location
PIC XXX.
02 price
PIC 999999V99.
END
ASCII representation of a numeric literal in a VALUE or MUST BE
clause
Alphanumeric string in a COMMENT, DISPLAY, PICTURE, VALUE,
HEADING, HELP, or MUST BE clause
Keyword in a VALUE or MUST BE clause
Name of a value in a level 89 enumeration clause
National string in a VALUE or MUST BE clause
Internationalized text items in an AS, HEADING, 88, or VALUE
clause.
Field element 0
Group element 0
Field element 1
Field element 2
Field element 3
Field element 4
Field element 5
VSTD01.vsd
D- 2
Elements

Advertisement

Table of Contents
loading

Table of Contents