BookmarkSubscribeRSS Feed
keen_sas
Quartz | Level 8
Hi ,

Can anyone explain me how to represent different symbols like +/-,µ in titles,footnotes in graphs , which generally does not work if we apply them directly . Are there any options to use them?

Thanks in advance
4 REPLIES 4
GraphGuy
Meteorite | Level 14
If you're running v9.2, then you should be able to use unicode characters, such as the ones in the "albany amt" font we ship with sas, in the title as follows...

title "Here is the mu character: " font="albany amt/unicode" '03bc'x;
proc gplot data=sashelp.class;
plot height*weight;
run;

(With the caveat that it might depend on what graphical proc you're running, and whether you're using "gtitles", and what output device you're using.) Message was edited by: Robert Allison @ SAS
keen_sas
Quartz | Level 8
Thank you for your answers. But i am working on v8.2 and i think this doesn't work on 8.2 .Can u please tell me the options / font in v8.2 . I am working this on proc gplot and this has to be created in PDF.
GraphGuy
Meteorite | Level 14
If you're running on a PC, and your sas is prior to v9.2, you can typically use any non-unicode font character you have installed on your PC (for example, font="symbol" '6d'x for the mu character).

But having gone through several versions (v9, v9.1, v9.1.3, v9.2) I don't have v8.2 on my PC anymore, so I can't try it to make 100% sure this will work. (btw - I *really* recommend upgrading to v9.2! - you're missing out on a lot of nice new features!)

Might be a good question for Tech Support, if nobody here can give a definitive answer!
DanH_sas
SAS Super FREQ
To follow up on Robert's post, if you happen to be using the SG procedures at 9.2, you can use ODS inline formatting to insert the Unicode value in titles, footnotes, axis labels, etc.:

title "This is X(*ESC*){unicode '00b2'x}";

Thanks!
Dan

sas-innovate-2024.png

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.

 

Register 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.

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
  • 4 replies
  • 832 views
  • 0 likes
  • 3 in conversation