This statement contains what appears to be a substring expression (two numbers in square brackets) following the identifier shown. However, that variable is not of data type CHAR or VARCHAR. If you intended this variable as a substring, then you either named the wrong variable, or the variable is not correctly defined. If you meant this as an array subscript, the same is true.