Compare date value DD.MM.YYYY to current date
Posted: Tue Jan 19, 2016 6:28 pm
My data contains a character field CH(10) with a date value in the format DD.MM.YYYY
I want to compare that value with the current date. Is there a way to achieve this?
(After som googling) I tried the following code, which gave me an error:
After some trial and error I noticed that 451,10,CH,GE,DATE1 won't give me an error. But I'm pretty sure, that this won't work(?)
Thank you!
I want to compare that value with the current date. Is there a way to achieve this?
(After som googling) I tried the following code, which gave me an error:
(some code)
451,10,CH,GE,DATE=(DM4.)
451,10,CH,GE,DATE=(DM4.)
JCK2218E INCLUDE (LINE=00006): INVALID POSITION IS SPECIFIED
JCK2202E INCLUDE (LINE=00006): , IS EXPECTED
JCK2202E INCLUDE (LINE=00006): , IS EXPECTED
After some trial and error I noticed that 451,10,CH,GE,DATE1 won't give me an error. But I'm pretty sure, that this won't work(?)
Thank you!