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;
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 lock in 2025 pricing—just $495!
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.