Hi,
I've got a csv file (comma seperated) that I import into CAS to use with SAS VA with the SAS Data explorer (import local file).
In the csv file there are columns that contains dates. When the csv file is loaded into CAS. The date columns are of type varchar. I would like them to be numeric so I can use them as proper dates in my reports.
I've tried different formats: European, Amercian.
europe1,europe2,europe3,usa1,usa2,usa3,usa4,usa5
20171112,2017-11-12,12-11-2017,20171211,2017-12-11,11-12-2017,11/12/2017,2017/12/11
20170625,2017-06-25,25-06-2017,20172506,2017-25-06,06-25-2017,06/25/2017,2017/25/06
Tried different enconding on the import function of Data Explorer.
How can I load dates in a csv to SAS in such a way the become numeric(dates) in SAS.
Best regards
Nanno
Hi,
no reply yet.
But I've "solved" this by using a data plan, that converts the varchar to a date column.
best regards
Nanno
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.