I'm reading a .csv file in COBOL and writing a fixed-length .txt file. I want all the dates in the .txt file to be YYYYMMDD format.
The .csv has numerous dates, all formatted as month/day/year. I've tried UNSTRING, which works when mm and dd are both two digits (e.g.,12/17/1996) but it doesn't work with 1-digit months or days, like 1/17/1996 or 12/7/1996.
I could struggle through a character-handling routine, but I'm hoping somebody out there has an easier solution.
My Micro Focus product specs are as follows.
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.6.01586 SP1Rel
Installed Version: IDE Standard
Microsoft Visual Web Developer 2010 01011-532-2002361-70367
Microsoft Visual Web Developer 2010