*MAX is only valid for %LEN when the definition is a varying-length item; *MAX is ignored.
20
Cause . . . . . : The second parameter of *MAX for built-in function %LEN may only be specified if the first parameter is the name of a varying-length item.
Recovery . . . : Omit the second parameter for %LEN, or change the first parameter to the name of a varying-length item. Compile again.