The ALLOCATE statement allocates storage for based variables and saves a storage address to a locator variable.

figure syntax allocate based
ALLOCATE Statement for Based Variables

Allocated storage size is determined according to a based variable’s attributes and the length and the size determined when the ALLOCATE statement is executed.