DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 87
PASCALBOUND Command
CONST CUSTOMER_CUSTNAME_KEY = 25454;
PASCALBOUND Command
The PASCALBOUND command sets the lower bound for Pascal arrays. This value is
stored in the dictionary with the field or group definition.
PASCALBOUND 0
assigns any subsequent Pascal arrays a lower bound of 0.
PASCALBOUND 1
assigns any subsequent Pascal arrays a lower bound of 1. PASCALBOUND 1 is
the default.
PASCALBOUND Command Guidelines
The following points are guidelines for using the PASCALBOUND command:
•
You can use the PASCALBOUND command as often as you need to set different
bounds for different arrays.
•
DDL uses the value in the PASCALBOUND command when writing an element to
the dictionary. After an element is in the dictionary, changing the PASCALBOUND
value has no effect on the Pascal output for that element. To change the
PASCALBOUND value for an entered element, you must replace the element in
the dictionary.
•
Pascal arrays are declared for fields and groups described with an OCCURS
clause, for fields described as TYPE CHARACTER, and for all fields described
with an alphanumeric picture.
•
If you specify PASCALBOUND 0, the array bounds are:
[0:number - 1]
In the array bounds,
number
is the number of occurrences of a field described with
an OCCURS clause, or the number of characters in a field described with an
alphanumeric PICTURE or a TYPE CHARACTER clause.
If you specify PASCALBOUND 1, the array bounds are:
[1:number]
PASCALBOUND { 0 | 1 }