BookmarkSubscribeRSS Feed
Solly7
Pyrite | Level 9

hi i need help in Exporting more than 1048576 into csv/xlsb/xlsx file using base sas 9.4 .

 

I need to work on report using excel but my rows always limits to  1048576  when i use below code to export

 

proc export
data = Final_Rollup
outfile = 'C:\Users\msbla\report.xlsb'
dbms = excel replace;
run;

2 REPLIES 2
Kurt_Bremser
Super User

Use the proper dbms= value:

proc export
  data = Final_Rollup
  outfile = 'C:\Users\msbla\report.csv'
  dbms = csv
  replace
;
run;

A csv file is only limited by available disk storage. Note that you can't import it into Excel, but who uses Excel for data containing a million rows anyway?

unison
Lapis Lazuli | Level 10

As Kurt suggested, use CSV for this.

From Microsoft:

Excel 2007 and above supports 2^20 rows, i.e. 1048576 rows. They are just numbered from 1 to 1048576.

https://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/why-does-an-excel-spreads...

 

-unison

-unison

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2334 views
  • 3 likes
  • 3 in conversation