Hello,
I am using the Proc statement below to import an excel sheet into SAS. Then I used the data set to change the labels. I can see the labels are changed in proc contents but the labels will not show in the output or with the print proc. Is there something I am missing or could I have done the label statement in the proc import statement. Thank you!
Proc import
datafile= "/folders/myfolders/color.xlsx"
out= work.color
dbms= XLSX replace;
Run;
Data work.color;
set work.color;
Label Region = "Geographic Region"
Eyes = "Eye Color"
Hair = "Hair Color";
Proc print data= work.color;
Label;
Run;
Proc contents data =work.color;
proc options option=label;
run;
option label;
The right syntax is:
Proc print data= work.color Label;
Run;
Thank you kindly
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.