Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Viya V03, SAS VA 8.2, Data explorer 1.0.138, loading csv, date values become varchars

Reply
New Contributor
Posts: 2

Viya V03, SAS VA 8.2, Data explorer 1.0.138, loading csv, date values become varchars

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

New Contributor
Posts: 2

Re: Viya V03, SAS VA 8.2, Data explorer 1.0.138, loading csv, date values become varchars

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

Ask a Question
Discussion stats
  • 1 reply
  • 171 views
  • 0 likes
  • 1 in conversation