Oracle Error Message
ORA-36160: (XSMXAGGR04) You cannot use string on scalar VARIABLE workspace object.
Reason for the Error
The user tried to run the AGGREGATE or AGGCOUNT command or function on a scalar variable.
Solution
Specify a dimensioned variable instead