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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.