checking date value with CL
Posted on 2006-06-23
I have a CL program that accepts a character value as a date, '06/06/2006'. Is there a way to check this value prior to using it in the DSPJRN command? If I pass a bad date value I get a CPF0001 message when the command tries to execute, and I would like to trap a bad value prior to that.
I tried using the CVTDAT command, hoping it would fail, but it didn't. Any help appreciated.