BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi All,

I have an output data set 'ext4' in work.I want to export this ODS to excel. I tried google serach on how to do this , but did not get much help.

kindly could anyone please sugeest me on this.

kindest regards,
Mark
3 REPLIES 3
peatjohnston
Calcite | Level 5
Hi Mark,

If you are using pc SAS, you should be able to go to File --> Export Data
and a new window will open up and walk you through the process of creating and naming the Excel file and where to save it.

peat
Cynthia_sas
SAS Super FREQ
Hi:
For some code examples, see these previous forum postings:
http://support.sas.com/forums/thread.jspa?messageID=7958἖
http://support.sas.com/forums/thread.jspa?messageID=31690篊

For an explanation of all the various ODS techniques, see this previous forum posting:
http://support.sas.com/forums/thread.jspa?messageID=8719∏

And the answer to this question back in March, still applies, as well:
http://support.sas.com/forums/thread.jspa?messageID=33372艜

cynthai
jj030655
Calcite | Level 5
%macro xlsxport(lib,dataset,ssname,sheet);
*XPORT a spreadsheet to c:\xxxx\ssname.xls because everyone will have this folder.;
PROC EXPORT DATA= &lib..&dataset
OUTFILE= "C:\xxxx\yyyy\zzzz\&ssname..xls"
DBMS=EXCEL2000 REPLACE;
sheet=&sheet;
run;
%MEND xlsxport;

to use this...

%xlsxport(work,mydataset,myexcelworkbook,myexcellsheet);

You can adjust the path name to fit your needs.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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