INVTYPSIZ
413
Invalid data type/size specification {token}
A field or group’s type or size specification is incorrect. For example, a group may not have a p (packed) data type; the size value cannot be 0 or less; and the precision cannot be less than 0, greater than the specified field size, or greater than 28. In addition, you cannot specify a fixed-size array of any class type (derived from System.Object).
This error can also occur in a FOREACH loop in the following situations:
-
DATA is not declared and the AS type is not a reference type.
-
DATA is declared and an unsized AS type is specified (e.g., “AS a”).
-
DATA is declared, an AS type isn’t specified, and the type implied from the collection is unsized.
In other words, the AS type in a FOREACH statement must be nonzero so the proper amount of memory can be reserved for the loop variable. (Warning level 1)