Dictionary/3000 Reference Manual (32244-90001)

Chapter 6 211
The Dictionary DICTPDE Utility
>GENERATE ELEMENTS
ELEMENT-TYPE = X I
ELEMENT-LENGTH = 12 4
The code for the parent element ADDRESS is generated as follows:
>generate element
ELEMENT(S)> address
TYPE
ADDRESS =
RECORD
CASE INTEGER OF
0 :
(
BUFFER : PACKED ARRAY[1..48] OF CHAR;
);
1 :
(
DUMMY0 : PACKED ARRAY[1..3] OF CHAR;
STREET : PACKED ARRAY[1..12] OF CHAR;
DUMMY1 : PACKED ARRAY[1..15] OF CHAR;
NUMB : INTEGER
);
END;
When the sum of the storage lengths for the child elements does not equal the storage
length for the parent element, DICTPDE will generate “BUFFER” or “DUMMY” fields in
order to insure the correct storage length for the parent element. The BUFFER and
DUMMY fields begin at the correct byte offsets within the parent element.