Programming the statistical procedures from SAS

Can not read excel files

Reply
Contributor
Posts: 69

Can not read excel files

Hello

 

I am trying to import excel file to SAS (did it many times in the past).

Now I got the following two Computer Screens which I really do not understand.

There is not any Excel icon any more but white note close the excel name file.

Can I do something to improve it?

 

Thanks  a lot!SAS 110517c.png

 

SAS 110517c.png

Super User
Super User
Posts: 7,565

Re: Can not read excel files

Are you sure thats an Excel file?  Its telling you that it can't find data in the fist few rows.  Open it in Excel and see what it looks like.

 

For the icons, that a different thing.  File associations are given by the file extension.  By default on install, .xlsx, .xls etc. will be associated with the Excel application, you can of course change this, and maybe this is what you have done.  In windows, you can right click on an .xlsx or .xls file and click Open With.  Now select Excel from either th list presented, or the other items, and make sure Always open with this app check box is checked in lower left.  Now click ok, and the Excel icon should appear on all these again.

Super User
Posts: 7,094

Re: Can not read excel files

I guess it is because you switched from .xls to .xlsx. xslx was not yet supported in 9.2.

You should do an upgrade to the current SAS version.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 10,871

Re: Can not read excel files

Since the file is XLSX and you are running SAS 9.2 you may have to consider an alternate such as us Excel to save the file as CSV and import that.

Ask a Question
Discussion stats
  • 3 replies
  • 133 views
  • 4 likes
  • 4 in conversation