Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-109
TALBOUND
TALBOUND
The TALBOUND command sets the lower bound for pTAL or TAL arrays.
Default: TALBOUND 1
0
assigns any subsequent pTAL or TAL arrays a lower bound of 0.
1
assigns any subsequent pTAL or TAL arrays a lower bound of 1.
The DDL compiler stores the value of the lower bound in the dictionary with the field or
group definition.
You can use the TALBOUND command as often as needed to set different bounds for
different arrays.
The DDL compiler uses the value specified by the TALBOUND command when it
writes an element to the dictionary. After an element is in the dictionary, changing the
TALBOUND value has no effect on the pTAL or TAL output for that element. To
change the TALBOUND value for an entered element, you must replace the element in
the dictionary.
pTAL or TAL 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 TALBOUND 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 TALBOUND 1,
the array bounds are:
[1:number ]
TALBOUND { 0 | 1 }