BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pp2014
Fluorite | Level 6
I am using Proc import to read excel file. It has more than 300 columns. But it reads only 255 columns. Does anybody know whether there is any option to read more columns? I am using SAS 9.2 version. Following is my sample code: PROC IMPORT OUT= want DATAFILE= "c\have.xlsx" DBMS=excel REPLACE; RUN;
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Are you using SAS UE as your title indicates, or SAS 9.2?

 

Try DBMS=XLSX if SAS UE. 

 

The 255 limit is from Excel ACE engine, not a SAS limitation so you may need to convert file to CSV to import it correctly. 

View solution in original post

2 REPLIES 2
Reeza
Super User

Are you using SAS UE as your title indicates, or SAS 9.2?

 

Try DBMS=XLSX if SAS UE. 

 

The 255 limit is from Excel ACE engine, not a SAS limitation so you may need to convert file to CSV to import it correctly. 

ChrisHemedinger
Community Manager

If you're using SAS 9.2 then you're not using SAS University Edition.  SAS 9.2 did not support the native XLSX format, so you'll probably need to convert your Excel file into a CSV in order for SAS to read the entire thing.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 1706 views
  • 1 like
  • 3 in conversation