ASMA094I Substring goes past string end; default=remainder

Explanation

The second expression of a substring notation specifies a length that extends beyond the end of the string.

System action

The result of the substring operation is a string that ends with the last character in the character string.

Programmer response

Make sure the arithmetic expression used to specify the length does not specify characters beyond the end of the string. Either change the first or the second expression in the substring notation. You can use the assembler option FLAG(NOSUBSTR) to suppress this message.

Severity

0