DATA Step, Macro, Functions and more

extend variable label length

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

extend variable label length

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


Accepted Solutions
Solution
‎04-17-2018 11:33 AM
PROC Star
Posts: 618

Re: extend variable label length

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


All Replies
Solution
‎04-17-2018 11:33 AM
PROC Star
Posts: 618

Re: extend variable label length

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

Thanks,
Suryakiran
New Contributor
Posts: 3

Re: extend variable label length

Posted in reply to SuryaKiran

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.

 

Super User
Posts: 23,958

Re: extend variable label length

Labels are limited to 256 characters.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 108 views
  • 2 likes
  • 3 in conversation