I have an 8 char field with iso dates in it(20061030). My problem is this. The following date was in the field and passed validation but the program bombed when it tried to move the date into a date field.
Example:
8 char field (ISODATE): '2061031 '
rpg date field (RPGDATE) in *MDY format
c *iso0 Test(d) ISODATE 50
c If *in50=*on
c do something
c Endif
c *iso0 Move ISODATE RPGDATE
The test will not fail but the move will. I've tried this in free format with %DATE BIF and the RPGDATE field is loaded with '2061-03-01'.
Can some one explain what I am missing?
Thanks in advance.
Example:
8 char field (ISODATE): '2061031 '
rpg date field (RPGDATE) in *MDY format
c *iso0 Test(d) ISODATE 50
c If *in50=*on
c do something
c Endif
c *iso0 Move ISODATE RPGDATE
The test will not fail but the move will. I've tried this in free format with %DATE BIF and the RPGDATE field is loaded with '2061-03-01'.
Can some one explain what I am missing?
Thanks in advance.