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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 503 views
  • 0 likes
  • 2 in conversation