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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1543 views
  • 0 likes
  • 1 in conversation