EQA1639E ALLOCATION( variable name ) is invalid because the ALLOCATION built-in function can be used only with controlled variables.
Explanation
You must name a variable that is ALLOCATEable.
Programmer response
The variable by that name cannot be a controlled variable within the current context. If the variable exists somewhere else (and is a controlled variable), you should use qualification with the variable name.