BookmarkSubscribeRSS Feed
cris17
Calcite | Level 5

Hello SAS Communities,

I've ran the code below

 

Screen Shot 2020-11-29 at 7.42.36 PM.png

and in the results, it does not show the labels but instead the original variable names. I'm sure its something really simple to fix, but it feel like I did everything correctly, but I dont know what else to do .

 

Thank you.

 

3 REPLIES 3
SASKiwi
PROC Star

Try adding the LABEL option to your PROC PRINT statement.

 

BTW, please post your program test by copy and paste using the running man icon, not as screenshots as they are often unreadable.

LittlesasMaster
Obsidian | Level 7

Try this:

proc print data=ur_dataset label ;

id <>;

by <>;

var <>;

label 

------ ;

 

run;

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1470 views
  • 0 likes
  • 4 in conversation