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

Hi, I am relatively new to SAS University. I am trying to import an Excel spreadsheet that has >1000 columns. I imported the data successfully, but only the first 256 columns. My code is below:

 

libname in '/folders/myfolders/sas';
proc import datafile='/folders/myfolders/sas/Fibrosis.xls'
out=in.LVFibrosis
DBMS=xls
REPLACE;
run;

 

Am I limited by the software to 256 columns? And if so, does anyone have suggestions for working with a larger amount of data?

 

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

I believe your issue lies with using XLS not XLSX. The older versions of Excel with extenstion XLS could not have more than 255 columns. So adjust your file name and and the engine.

 

 

View solution in original post

3 REPLIES 3
ballardw
Super User

I believe your issue lies with using XLS not XLSX. The older versions of Excel with extenstion XLS could not have more than 255 columns. So adjust your file name and and the engine.

 

 

elmariah
Calcite | Level 5
Thanks a lot! That did the trick.

##- Please type your reply above this line. Simple formatting, no
attachments. -##
Reeza
Super User

Please mark the question as answered, if you have a solution.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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