EQA1631E The subject of the SUBSTR pseudovariable ( character string ) is not a string.

Explanation

You are trying to get a substring from something other than a string.