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/

 

 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 8 replies
  • 2412 views
  • 0 likes
  • 4 in conversation