Hello Experts,
I'm looking for a way to name the sheet while the proc export on csv file ?
Thank you !
A CSV file is just a text file. A CSV file does not have "sheet name". When you are writing a CSV file you only need to specify the name of the FILE you want to create.
Hi I think to do this you need to specify the sheet name as follows:
i.e use the Sheet statement
Hope this helps.
proc export data=mydata
outfile='C:\path\to\mydata.csv'
dbms=csv
replace;
sheet='MySheetName';/*Insert the Sheet name here*/
run;
A CSV file is just a text file. A CSV file does not have "sheet name". When you are writing a CSV file you only need to specify the name of the FILE you want to create.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.