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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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