Talbound Command - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

DDL Compiler Commands
DEF number Pic "9(5)".
?NOTALALLOCATE
DEF status TYPE ENUM BEGIN.
89 no-error.
89 read-error.
89 write-error VALUE 6.
END.
DEF letter Pic "X".
DEF number Pic "9(5)".

TALBOUND Command

The TALBOUND command sets the lower bound for pTAL or TAL arrays. This value is
stored in the dictionary with the field or group definition.
TALBOUNd { 0 | 1 }
TALBOUND 0
assigns any subsequent pTAL or TAL arrays a lower bound of 0.
TALBOUND 1
assigns any subsequent pTAL or TAL arrays a lower bound of 1. TALBOUND 1 is
the default.
TALBOUND Command Guidelines
The following points are guidelines for using the TALBOUND command:
You can use the TALBOUND command as often as needed to set different bounds
for different arrays.
DDL 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]
Data Definition Language (DDL) Reference Manual—426798-002
STRUCT NUMBER;
BEGIN STRING BYTE [1:5]; END;
LITERAL NO^ERROR = 0,
READ^ERROR = 1,
WRITE^ERROR = 6;
DEFINE STATUS = INT #;
DEFINE LETTER = STRING #;
STRUCT NUMBER (*);
BEGIN STRING BYTE [1:5]; END;
9 -107
TALBOUND Command

Advertisement

Table of Contents
loading

Table of Contents