DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9 -108
TALCHECK Command
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 Command Example
This example illustrates both TALBOUND settings:
The definitions for TEST0 and TEST1 are compiled into pTAL or TAL source code as:
TALCHECK Command
The TALCHECK command causes the DDL compiler to:
•
Perform pTAL or TAL syntax checks as though the compiler were going to produce
pTAL or TAL source code, but without actually generating the code.
•
List messages describing any error or warning conditions discovered during syntax
checking.
TALCHECK
performs the pTAL or TAL syntax checks as though pTAL or TAL source code were
being produced. If a pTAL or TAL source file is open, TALCHECK is the default.
[ NO ] TALCHECK
?TAL
.
.
.
?TALBOUND 0
DEF test0 PIC X(10).
?TALBOUND 1
DEF test1 PIC X(10).
Open TAL Source File
TALBOUND is 1 by default
Change TALBOUND to 0
Return to default setting
VST928.vsd
?SECTOPM TEST0
STRUCT TEST0;
BEGIN STRING BYTE [0:9]; END;
?SECTION TEST1
STRUCT TEST1
BEGIN STRING BYTE [1:10]: END;
TALBOUND 0 in source
TALBOUND 1 in source
VST929.vsd