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: 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 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1059 views
  • 1 like
  • 5 in conversation