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

Is there a simple macro out there that exports output of a sas dataset to excel? Note: I am using SAS EG 4.3 so unable to use PROC EXPORT.

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

You should be able to use PROC EXPORT, unless you don't have a license for it, or you're on a server and can't proc export to your local drive which is what you're trying to do.

 

Regardless, there is a macro that may work for you, see code/paper here:

http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export

 

If it is the server issue, see this post:

http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/

View solution in original post

2 REPLIES 2
Reeza
Super User

You should be able to use PROC EXPORT, unless you don't have a license for it, or you're on a server and can't proc export to your local drive which is what you're trying to do.

 

Regardless, there is a macro that may work for you, see code/paper here:

http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export

 

If it is the server issue, see this post:

http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/

RW9
Diamond | Level 26 RW9
Diamond | Level 26

What do you want the Excel files?  Are you trying to create some review output files?  If so then I would first recommend using a report format - proc report to PDF or RTF for instance, although if they insist on Excel, then ods tagsets.excelxp (google for results).

 

If you are transferring data, then don't use Excel, it is not useful in any way as a data transfer format.  Use Comma Separated Variable format.

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
  • 2 replies
  • 3003 views
  • 2 likes
  • 3 in conversation