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,
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.
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.
Please mark the question as answered, if you have a solution.
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 25. Read more here about why you should contribute and what is in it for you!
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.