BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
LTY
Calcite | Level 5 LTY
Calcite | Level 5

Hi everyone, I would like to output a dataset to the folder in same server but in excel format. I am able to output to the same server in sas format using below code. Is there anyone can help to change it to excel format? Thank you.

libname out "/sasdata/data/xxxxxxx";
data out.custlist;
set work.custlist;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
andreas_lds
Jade | Level 19

Have you tried using proc export?

 

proc export data=work.custlist dbms=xlsx file="..." replace;
run;

or just change the libname-statement to use xlsx-engine, the path has to point to a file.

View solution in original post

1 REPLY 1
andreas_lds
Jade | Level 19

Have you tried using proc export?

 

proc export data=work.custlist dbms=xlsx file="..." replace;
run;

or just change the libname-statement to use xlsx-engine, the path has to point to a file.

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 465 views
  • 0 likes
  • 2 in conversation