Hi,
We are using ILE COBOL for programming. We need to perform Date validation and conversion in ILE COBOL.
I know we have intrinsic functions such as TEST-DATE-TIME and CONVERT-DATE-TIME but we could not see much examples in IBM reference manual so wanted to check if someone can help us with code sample.
We need to check if the character variable has valid date or not and then convert the date into MMDDYY format if it is valid.
Character variable can have date in the formats MMDDYYYY or MM-DD-YYYY or MM/DD/YY etc.
Please let us know if there is any sample code which does the above checks and validation.
Thanks in advance.
Thanks,
Ravindra
We are using ILE COBOL for programming. We need to perform Date validation and conversion in ILE COBOL.
I know we have intrinsic functions such as TEST-DATE-TIME and CONVERT-DATE-TIME but we could not see much examples in IBM reference manual so wanted to check if someone can help us with code sample.
We need to check if the character variable has valid date or not and then convert the date into MMDDYY format if it is valid.
Character variable can have date in the formats MMDDYYYY or MM-DD-YYYY or MM/DD/YY etc.
Please let us know if there is any sample code which does the above checks and validation.
Thanks in advance.
Thanks,
Ravindra
Comment