BookmarkSubscribeRSS Feed
Nanno
Calcite | Level 5

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

1 REPLY 1
Nanno
Calcite | Level 5

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 1 reply
  • 1029 views
  • 0 likes
  • 1 in conversation