I have received some text files that have been extracted from SQL Server and need to be imported into SAS. The problem is that the delimiter is a colon ':'
And this file also contains datetime fields where the seconds are separated by the same delimiter.
I cannot change the text file extract procedure for these now since these files are backdated extracts.
Sample Data:
ABCDEFGHI:2015-06-03 00:00:00.000:XYZ
DEFGHI::XYZ
GHIJ:2015-06-04 04:43:19.660:KLMN
Since the variables have varying lengths, I can't import this as a fixed length file. I tried importing the datetime fields into separate date, hour, minute and seconds fields but the dates are missing on some records which means these records won't have sufficient number of delimiters.
Please help. Is there any way I can import this file successfully into SAS?