The result field is too long for the data format specified.
10
Cause . . . . . : The data specified in the result field is longer than a date, time, or timestamp with the format specified in factor 1. For character fields, only the leftmost data will be examined; for numeric fields, only the rightmost digits will be examined. If the result field is to be converted to a Date, Time or Timestamp field following a successful TEST operation, ensure that the correct data is converted by using MOVEL for character data and MOVE for numeric data. %DATE, %TIME or %TIMESTAMP can also be used to convert the data to a true Date, Time or Timestamp field, by using %SUBST with character data, or %REM with numeric data.
Recovery . . . : Change the length of the result field. Compile again.
Technical description . . . . . . . . : When using %SUBST with %DATE, %TIME or %TIMESTAMP, use a starting position of 1 and a length that matches the specified format; for example %DATE(%SUBST(DATA:1:8):*YMD). When using %REM with %DATE, %TIME or %TIMESTAMP, the second operand of %REM must be a value like 1000000 or 100000000, where the number of zeros is the same as the number of desired digits; for example %DATE(%REM(DATA:1000000):*YMD).