Dictionary/3000 Reference Manual (32244-90001)

Chapter 6 223
The Dictionary DICTPDE Utility
PASCAL Data Type Mappings
PASCAL Data Type Mappings
To be compatible with PASCAL, the data types for the extracted entities as defined in the
Dictionary must be mapped to PASCAL data types. The following shows how the
Dictionary data types are mapped to compatible PASCAL data types. Note that the
PASCAL type occupies the same storage length as the data types defined in the Dictionary.
(The storage length is computed from the ELEMENT-LENGTH and ELEMENT-COUNT
entries for an entity in the Dictionary.)
Any ASCII character:
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = X
ELEMENT-LENGTH = N
The corresponding PASCAL data type will be generated:
CHAR (if N=1) or
PACKED ARRAY[1..N] OF CHAR (if N > 1)
For example, if an entity is defined in the Dictionary as:
ELEMENT = ACCOUNT_NAME
ELEMENT-TYPE = X
ELEMENT-LENGTH = 20
The PASCAL code will be generated as:
ACCOUNT_NAME = PACKED ARRAY[1..20] OF CHAR
Uppercase alphanumeric string:
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = U
ELEMENT-LENGTH = N
The corresponding PASCAL data type will be generated:
' '..'Z' (if N = 1) or
PACKED ARRAY[1..N] OF ' '..'Z' (if N > 1)
Note that the PASCAL subrange ' '..'Z' restricts characters from being lowercase.
Numeric ASCII string:
If the entity is defined in the Dictionary as:
ELEMENT-TYPE = 9 or 9+
ELEMENT-LENGTH = N
The corresponding PASCAL data type will be generated:
'0'..'9' (if N = 1) or