Would somebody please explain why the label is not labeling the variables?
data test; label n = "num"; label c = "char"; input n c $; cards; 1 123 2 xyz run;
proc contents data=test; run;
Proc contents output has no labels.
Looks like you have turned of the LABEL system option.
Check it.
proc options option=label;
run;
Turn it back on.
options label;
Please try the below code
data test;
label n = "num"
c = "char";
input n c $;
cards;
1 123
2 xyz
run;
proc contents data=test;
run;
Please put your input statement at the beginning followed by your label statement. Let's see, if it works
Looks like you have turned of the LABEL system option.
Check it.
proc options option=label;
run;
Turn it back on.
options label;
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!
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.