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.

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