BookmarkSubscribeRSS Feed
shellp55
Quartz | Level 8

Hello I am using SAS to import a Excel 2010 worksheet that has 406 columns, however only 255 columns are importing.  I think I've read that there is a 255 column limit but is there no way to work around this?  The code I'm currently using is: PROC Import Out=Work.Master_A DataFile=c:\test\worksheet1 DBMS=ExcelCS Replace; Range="A1:OP101"; ScanText=Yes; UseDate=Yes; ScanTime=Yes; Run; Thanks for any assistance.

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

TBH I avoid using proc import/export.  Save the file as CSV file, then write a small datastep import program.  You then have full control over columns, formats, and conditions.  I can't see why 406 column excel sheet is even usuable.

ballardw
Super User

you don't show the full file name for the Excel file. Without an extension of xlsx it could be getting treated as an earlier version with a 255 column limit.

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
  • 2158 views
  • 0 likes
  • 3 in conversation