Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-108
TALALLOCATE
TALALLOCATE
The [NO]TALALLOCATE command causes [suppresses] memory allocation in pTAL or
TAL for single-field definitions when the TAL command is in effect.
Default: TALALLOCATE
TALALLOCATE
allocates memory for single-field definitions when the TAL command is in effect.
NOTALALLOCATE
suppresses memory allocation when the TAL command is in effect, causing the
DDL compiler to translate single-field definitions to pTAL or TAL DEFINEs or
STRUCT templates.
[NO]TALALLOCATE
Example 9-55. TALALLOCATE Command
DDL Type pTAL or TAL Type
?TALALLOCATE
DEF status TYPE ENUM BEGIN.
89 no-error.
89 read-error.
89 write-error VALUE 6.
END.
LITERAL NO^ERROR = 0,
READ^ERROR = 1,
WRITE^ERROR = 6;
INT STATUS;
DEF letter Pic "X".
STRING LETTER;
DEF number Pic "9(5)". STRUCT NUMBER;
BEGIN STRING BYTE [1:5]; END;
?NOTALALLOCATE
DEF status TYPE ENUM BEGIN.
89 no-error.
89 read-error.
89 write-error VALUE 6.
END.
LITERAL NO^ERROR = 0,
READ^ERROR = 1,
WRITE^ERROR = 6;
DEFINE STATUS = INT #;
DEF letter Pic "X".
DEFINE LETTER = STRING #;
DEF number Pic "9(5)". STRUCT NUMBER (*);
BEGIN STRING BYTE [1:5]; END;