Data Definition Language (DDL) Reference Manual (G06.24+)
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—426798-002
9-106
TALALLOCATE Command
 END;
 STRUCT ADDR;
 BEGIN
 STRUCT ADDRESS;
 BEGIN STRING BYTE [1:22]; END;
 STRUCT CITY;
 BEGIN STRING BYTE [1:14]; END;
 STRUCT STATE;
 BEGIN STRING BYTE [1:2]; END;
 STRUCT ZIP^CODE;
 BEGIN STRING BYTE [1:5]; END;
 END;
 END;
 LITERAL CUSTOMER^CUSTNUM^KEY = %000000;
 LITERAL CUSTOMER^CUSTNAME^KEY = %061556; !"cn"
TALALLOCATE Command
The TALALLOCATE command allocates memory in pTAL or TAL for single-field 
definitions. NOTALALLOCATE enables DDL to generate pTAL or TAL source code for 
single-field definitions without memory allocation. When NOTALALLOCATE is in effect, 
DDL translates single-field definitions into pTAL or TAL DEFINEs or STRUCT 
templates.
TALALLOCATE
allocates memory for single-field definitions when the TAL command is in effect. 
TALALLOCATE is the default.
NOTALALLOCATE
suppresses memory allocation when the TAL command is in effect, causing DDL to 
translate single-field definitions into pTAL or TAL DEFINEs or STRUCT templates.
TALALLOCATE Command Examples
The following examples show pTAL or TAL output for the same DDL definitions when 
TALALLOCATE is in effect and when NOTALALLOCATE is in effect.
DDL Type: pTAL or TAL Type:
?TALALLOCATE
DEF status TYPE ENUM BEGIN. LITERAL NO^ERROR = 0,
 89 no-error. READ^ERROR = 1,
 89 read-error. WRITE^ERROR = 6;
 89 write-error VALUE 6. INT STATUS;
END.
DEF letter Pic "X". STRING LETTER;
[ NO ] TALALLOCATE










