Dictionary/3000 Reference Manual (32244-90001)

224 Chapter6
The Dictionary DICTPDE Utility
PASCAL Data Type Mappings
PACKED ARRAY[1..N] OF '0'..'9' (if N > 1)
However, you must check that the minus sign doesn't appear in the data.
Zoned decimal:
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = Z
ELEMENT-LENGTH = N
The corresponding PASCAL data type will be generated:
'+'..'}' (if N = 1) or
PACKED ARRAY[1..N] OF '0'..'}' (if N > 1)
The above mapping indicates that the zoned decimal consists of (N - 1) digits with a
trailing overpunch.
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = Z+
ELEMENT-LENGTH = N
The corresponding PASCAL data type will be generated:
'+'..'{' (if N = 1) or
PACKED ARRAY[1..N] OF '0'..'{' (if N > 1)
Logical value (absolute binary):
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = K (or K+)
ELEMENT-LENGTH = 2
The corresponding PASCAL data type will be generated:
SET of 0..15
For any other ELEMENT-LENGTHs, an “Undefined PASCAL type” will be generated.
Packed decimal:
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = P (or P+)
ELEMENT-LENGTH = N
The corresponding PASCAL data type will be generated:
#0..#255 (if N = 1) or
PACKED ARRAY[1..N] OF #0..#255 (if N > 1)
Boolean:
If the entity is defined in the Dictionary as
ELEMENT-TYPE = B