BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
podarum
Quartz | Level 8

Hi, I'm trying to import an xlsm file into SAS and am operating on a Windows 10 machine.  For some reason it's not working.  Any suggestion are greatly appreciated.  Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
podarum
Quartz | Level 8
The fix happened to be a combination between Windows bit size, Office bit size and SAS installed bit size... they all had to be a 64 bit. Once that was fixed, it worked. Thanks everyone.

View solution in original post

5 REPLIES 5
japelin
Rhodochrosite | Level 12

What does "For some reason it's not working." mean?
Please let me know what you tried and what the results were.
For example, error messages printed in the SAS log window.

Also, it would be better if you have an xlsm file with sample data.

Tom
Super User Tom
Super User

Is it possible to receive the data as a normal XLSX file instead?  SAS will not have any use for any embedded Excel macros the spreadsheet might have it in anyway.

https://www.am18.co.uk/excel-file-types-xlsm-vs-xlsx/#:~:text=XLSM%20doesn't%20take%20up,and%20can%2... 

The biggest downside of XLSX was that you couldn’t store VBA macros. Well, that’s the biggest positive of XLSM. Anytime you try to save a VBA macros file in Excel, you will be prompted to use XLSM because it’s compatible with VBA macros.

DaanDNR
Obsidian | Level 7

proc import with dbms=xlsx should be able to read and excel with the xlsm extension. However you will need to have SAS/ACCESS Interface to PC Files

podarum
Quartz | Level 8
The fix happened to be a combination between Windows bit size, Office bit size and SAS installed bit size... they all had to be a 64 bit. Once that was fixed, it worked. Thanks everyone.
mkeintz
PROC Star

@podarum wrote:
The fix happened to be a combination between Windows bit size, Office bit size and SAS installed bit size... they all had to be a 64 bit. Once that was fixed, it worked. Thanks everyone.

Then mark your posting as the solution.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 5 replies
  • 963 views
  • 1 like
  • 5 in conversation