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/

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 8 replies
  • 1286 views
  • 0 likes
  • 4 in conversation