EQA1681E variable name is not a FILE variable or constant.

Explanation

ONSIGNAL file-condition (variable) is invalid because the variable is not a PL/I FILE variable.