Hello,
We just got burned with RNX0112 (Date, Time or Timestamp value is not valid) in a ILE RPG program because it was accidentally compiled with CVTOPT(*DATETIME) and a PF used in the program has a timestamp field (Z) and was the parameter to the %date() BIF.
The instruction that crashed was %date(FIELD), where FIELD is the TIMESTAMP field. The date format for the program is *ISO.
Unless I'm missing something and there's a case where you can use %date() with a 26-character field, I think that a compiler error should be issued.
Any thoughts?
Mike
We just got burned with RNX0112 (Date, Time or Timestamp value is not valid) in a ILE RPG program because it was accidentally compiled with CVTOPT(*DATETIME) and a PF used in the program has a timestamp field (Z) and was the parameter to the %date() BIF.
The instruction that crashed was %date(FIELD), where FIELD is the TIMESTAMP field. The date format for the program is *ISO.
Unless I'm missing something and there's a case where you can use %date() with a 26-character field, I think that a compiler error should be issued.
Any thoughts?
Mike
Comment