BookmarkSubscribeRSS Feed
dkanand86
Calcite | Level 5

Hi Everyone,

 

Please let me know the techniques for this exporting data from PC SAS into Excel. Thanks

 

Regards

8 REPLIES 8
PGStats
Opal | Level 21

Click on your dataset in explorer window, select menu File - Export... Follow instructions.

PG
dkanand86
Calcite | Level 5
I tried this option, but it failed.
PGStats
Opal | Level 21

Any error message?

PG
PGStats
Opal | Level 21

Fail proof (almost): Export as TAB separated text file and import data in Excel.

PG
Reeza
Super User
What version of SAS do you have?

libname out xlsx 'C:\test.xlsx';

data out.want;
set sashelp.class;
run;

libname out;

proc export data=sashelp.class outfile='C:\test2.xlsx' dbms=xlsx replace; run;
RW9
Diamond | Level 26 RW9
Diamond | Level 26

As mentioned above there are many ways of getting data to Excel:

-> Export from explorer window in SAS

-> Proc export

-> ods tagsets.excelp

-> libname excel

-> output to CSV

-> DDE

-> Copy and paste

 

Your question is too vague.  What have you tried, what errors do you get.  Post your code.

Reeza
Super User

Did any of the options I posted work for you, if not please explain why.

 

Here's a blog post detailing several methods:

http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 8 replies
  • 2518 views
  • 0 likes
  • 4 in conversation