BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I use proc export to put my data into Excel but how can I have the Variable labels printed into Excel other than the Variable names.. I know ODS does't it by does Proc Export have some option to do that ??

Matt
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
PROC EXPORT in SAS 9.2 does have the LABEL option (I think it was new for 9.2, though so it might not work in SAS 9.1.3):
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000316288.htm

cynthia
deleted_user
Not applicable
You can also use the dblabel option in the Excel libname.

libname xls "C:\test.xls";
data mylib.mydata(dblabel=yes);
set new;
run;
libname xls clear;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1276 views
  • 0 likes
  • 2 in conversation