BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pawaterman
Fluorite | Level 6

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;

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

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

Thanks,
Jag

View solution in original post

3 REPLIES 3
Jagadishkatam
Amethyst | Level 16

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

Thanks,
Jag
SaiSwaroop
Calcite | Level 5

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;

pawaterman
Fluorite | Level 6

Thanks Jag!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1142 views
  • 6 likes
  • 3 in conversation