BookmarkSubscribeRSS Feed
_SAS_
Obsidian | Level 7

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!

3 REPLIES 3
Reeza
Super User

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

 

There are many examples on here. 

Ksharp
Super User

My favorite is Libname statement:


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



ballardw
Super User

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?

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
  • 1064 views
  • 2 likes
  • 4 in conversation