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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1074 views
  • 0 likes
  • 3 in conversation