Oracle Solution for Error ora-36708

Solution for Oracle Error ORA-36708

ORA-36708: (XSMXALLOC00) Variable workspace object

must be dimensioned to be used by the ALLOCATE command.

What triggered the Error:

The user supplied an undimensioned (scalar) variable to the ALLOCATE command.

What should we do to fix it:

Use a dimensioned variable.