Moving a large string into a small field will result in data truncation with data lost from the right side of the string.
Noncompliant Code Example
01 ALPHA PIC X(4).
*> ...
MOVE "Now is the time" TO ALPHA *> Noncompliant. Becomes "Now "
Compliant Solution
01 ALPHA PIC X(15).
*> ...
MOVE "Now is the time" TO ALPHA
See
See Also
- {rule:cobol:S1967} - for truncation of numeric values