BookmarkSubscribeRSS Feed
Dontik
Obsidian | Level 7

Hi

I have a problem with proc import, when I try to import an .xls file I receive an error -

"Spreadsheet isn't from Excel V5 or later.  Please open it in Excel and Save as V5 or later

Requested Input File Is Invalid

ERROR: Import unsuccessful.  See SAS Log for details."

I've used XLS as DBMS.

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Is the file and Excel file, is it later version than 5?  Try opening it in Excel, then do SaveAs and check what is highlighted in the filetype on the SaveAs dialog.  Also, post your code which is causing the issue, I never use DBMS= for Excel files as SAS normally chooses the best fit.

Dontik
Obsidian | Level 7

Excel 97-2003 is highlited in the filetype.

Ok, I deleted DBMS and SAS set it to EXCELCS but now it wants server name.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

So what software are you using - Enterprise Guide, Base SAS?  It sounds like it may even be the University Edition which from what I see on here doesn't allow uploading of data.  What do you mean, SAS set it to ExcelCS?  Is this some generated code?

Dontik
Obsidian | Level 7

Ok, I figured it out, the file itself was a problem. But I have a different problem now, is it possible to use different encoding when using proc import? I'm asking this because there seem to be some language problems and some of the characters aren't showing properly.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 9611 views
  • 0 likes
  • 2 in conversation