BookmarkSubscribeRSS Feed
TurnTheBacon
Fluorite | Level 6

I need to import data from an XLS-document into DI Studio. I tried saving it as a CSV-file and importing it as a delimited external file, which worked well until I discovered that the CSV-file removes all unique Norwegian characters such as Æ, Ø, and Å. So, I figure I'll need to import the data directly from the XLS-file. Do you have any advice on how I might do this?

Thanks for your time.

3 REPLIES 3
Patrick
Opal | Level 21

The way as proposed in the link shivas posted would be the most direct way of doing things - but you need SAS/Access to PC files licensed.

In case you don't have this module licensed:

I just made a test with MS Excel 2010 under Win7: My encoding is English but the characters you mentioned are part of my "Character Map". I've added these characters to an Excel spreadsheet and then saved it as csv. The characters were still there. Just make sure you save as "CSV (Comma delimited)(*.csv)" and not as "CSV (MS-DOS)(*.csv)"

CameronLawson
Obsidian | Level 7

At work we have used the OLEDB library engine for xls and xlsx files.  We don't set them as libraries however like the linked blog post.  We script the connection in DI as a custom file.  This has the advantage of not persisting the connection to the file while still maintaining a reference in Metadata for the object.

Cameron

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 6323 views
  • 3 likes
  • 4 in conversation