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

I have created labels for my variables using the label statement in a data step. Some of my variable labels are longer than 256 characters are are cut off in the output and in graphs. How can I extend the length of the variable label?

 


data yikes; set pes.pes&version&sem&yr;
label &sem&yr.r113="The Iraqi government declared victory over the Islamic State in the battle for _________, which began in October 2016. Prime Minister Haider al-Abadi arrived in the city on July 9, 2017 to mark the formal end of a bloody campaign that killed thousands of people and displaced nearly a million more."
run;

image.png

1 ACCEPTED SOLUTION

Accepted Solutions
SuryaKiran
Meteorite | Level 14

Looking at your graph, you need the text below your graph. Why don't you try using "FOOTNOTE".

Thanks,
Suryakiran

View solution in original post

3 REPLIES 3
SuryaKiran
Meteorite | Level 14

Looking at your graph, you need the text below your graph. Why don't you try using "FOOTNOTE".

Thanks,
Suryakiran
pastorda
Calcite | Level 5

Thanks Suryakiran! I decided to try it first by using item stem as the axis label and all is well now. I appreciate your help.

 

Reeza
Super User

Labels are limited to 256 characters.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
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
  • 5431 views
  • 2 likes
  • 3 in conversation