In my program, I have the statement
The RDI debugger shows a value of 20690701 in field CUS_ACC_OPN_YYMD:
I am getting an RPG error that states the year portion of a Date or Timestamp value is not in the correct range but it also says the range for a 4 digit year must be 0001-9999.
The year portion of the date that produced the error is clearly in that range, so I am wondering why I am getting a hard error. I can code around it bevcause it obviously was a typ-o but it shouldn't produce a hard error, I would think.
Any ideas why it produces a hard error.
Code:
CMOPDT = %Dec(%Date(CUS_ACC_OPN_YYMD:*ISO):*MDY);
I am getting an RPG error that states the year portion of a Date or Timestamp value is not in the correct range but it also says the range for a 4 digit year must be 0001-9999.
The year portion of the date that produced the error is clearly in that range, so I am wondering why I am getting a hard error. I can code around it bevcause it obviously was a typ-o but it shouldn't produce a hard error, I would think.
Any ideas why it produces a hard error.
Comment