DATA Step, Macro, Functions and more

SAS 9.4 - Export multiple XLS files

Reply
Contributor
Posts: 24

SAS 9.4 - Export multiple XLS files

Hi all,


I have processed a lot of data in SAS and I need to put out a lot of XLS files for our colleagues who analyze the results. There are about 100 XLS files, each with 30 sheets ... Smiley Mad

 

In each XLS, there are about 5 different sheet types (each sheet type fed by a different SQL) and each XLS contains all sheet types (queries ran for different currencies).

 

I am using SAS 9.4.

 

Do you have any good sugestions how to do the XLS writing? Should I use proc export or some other way might be better?

 

Thanks a lot!

Super User
Posts: 19,855

Re: SAS 9.4 - Export multiple XLS files

You're probably going to need a macro but I'd also look into ODS Excel. 

 

There are many examples on here. 

Super User
Posts: 10,041

Re: SAS 9.4 - Export multiple XLS files


My favorite is Libname statement:


libname x xlsx 'c:\temp\want1.xlsx';
proc copy in=work out=x;
 select a1-a10;
run; 



Super User
Posts: 11,343

Re: SAS 9.4 - Export multiple XLS files

I'm somewhat curious about what type of analysis is performed in Excel that can't be done in SAS.

 

Or possibly you're exporting raw data instead of organized summaries?

Ask a Question
Discussion stats
  • 3 replies
  • 268 views
  • 2 likes
  • 4 in conversation