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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 1278 views
  • 0 likes
  • 1 in conversation