I'm applying permanent labels to variables in a data step (at the very end):
/* Labels */
Label
YY4_="Year"
RACE2="Race/Ethnicity"
age="Age Group"
FPL="Federal Poverty Level"
Urban="Urbanicity"
Married="Marital Status"
edu="Education"
mvitamin="Any Multivitamin Use"
pre_diet="Dieting to Lose Weight"
pre_exer="Exercise Three+ Days Per Week";
But when I run the proc surveyfreq using this dataset, the labels are not applied.
I've checked to ensure the options label wasn't turned off. And when I run proc contents, the labels are output as information about the dataset. I've also tried closing out the program entirely, re-opening it, and running it again.
I don't see anything unusual in the log, either.
I don't have much experience with PROC SURVEYFREQ, but have you checked the documentation?
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyfreq_syntax01.htm
Look at the VARHEADER = LABEL option there. That might be it?
I don't have much experience with PROC SURVEYFREQ, but have you checked the documentation?
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyfreq_syntax01.htm
Look at the VARHEADER = LABEL option there. That might be it?
Calling all data scientists and open-source enthusiasts! Want to solve real problems that impact your company or the world? Register to hack by August 31st!
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.