Hi Guys,
I am using the LABEL statement to assign variable labels.
However, when I run PROC PRINT the variables are still labeled with the abbreviated acronyms.
My understanding is that labels will only be printed along in certian procedures such as PROC FREQ or PROC MEANS.
Any insight into why would be much appreciated?
libname final '/folders/myfolders/final';
data final.merged_data;
set merged_data;
format DATE YYMMDD6. DAY BP CD DM JY SF;
label DATE="DATE" DAY="DAY" BP ="BRITISH POUND" CD="CANADIAN DOLLAR" DM="DEUTSCHE MARK" JY="JAPANESE YEN" SF="SWISS FRANC";
run;
proc print data=final.merged_data;
run;
I believe we need to use the label option to print the labels via proc print
proc print data=final.merged_data label;
run;
Thanks,
jag
I believe we need to use the label option to print the labels via proc print
proc print data=final.merged_data label;
run;
Thanks,
jag
Hi,
To view the label in your report you have to label option in "PROC PRINT" procedure
ex:
proc print data=final.mergerd label;
run;
Thanks Jag!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.