Dear SAS Users,
here: https://communities.sas.com/message/144788 it is discribed, how a µ can be inserted in a Graph. When I use in ANNOTATE the statement
%label(50 , 90 , "Test : %sysfunc(byte(948),$1.) = %sysfunc(byte(181),$1.)2" , black , 0 , 0 , 1.5 , 'Arial' , 5)
then the µ is printed, but for the delta, I get the warning
"WARNING: An argument to the function BYTE referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range."
How can I get the small delta? I got the code 948 for delta from the following page, which is also cited in the link above:
http://www.ssec.wisc.edu/~tomw/java/unicode.html#x0080
Thank you in advance and best regards
Edit: The same warning appears if I insert use %sysfunc(byte(963),$1.) to insert a small sigma. Can you also help me with that greek letter?
Here's one way to do it, using SAS/Graph annotate ...
data my_anno;
xsys='3'; ysys='3'; hsys='3';
x=50; y=50; size=8;
function='label'; style='albany amt/unicode'; text='2206'x;
run;
title ls=5.0 "Here is the Greek delta symbol:";
proc gslide anno=my_anno;
run;
Here's one way to do it, using SAS/Graph annotate ...
data my_anno;
xsys='3'; ysys='3'; hsys='3';
x=50; y=50; size=8;
function='label'; style='albany amt/unicode'; text='2206'x;
run;
title ls=5.0 "Here is the Greek delta symbol:";
proc gslide anno=my_anno;
run;
Thank you, Robert, for the answer.
I got the large Delta from your example. Can you tell me how to get a small delta and a small sigma? Or can you tell me where I can find a table with the 'albany amt/unicode' letters? It is not so easy to find such a table with google...
ods escapechar='~';
proc sgplot data=sashelp.class;
symbolchar name=sym1 char=delta_l / rotate=180 textattrs=(Weight=Bold);
yaxis label="Test : %sysfunc(unicode(δ, ncr)) = %sysfunc(unicode(µ,ncr))2";
xaxis label="~{unicode '03B4'x}";
scatter x=weight y=height / markerattrs=(symbol=sym1 size=15pt);
run;
If you're on Windows, you can run the 'Character Map' program, and then select the 'Albany Amt' font, and then look through all the characters. When you click on a character, you'll see the numeric code at the bottom of the window. I'm attaching a screen-capture below, so you'll know what to expect...
I checked the character map, but for the big Delta from your example, there is written: U+0394. I don't see the connection to text='2206'x in your example
I am sorry, it works. It seems that there are several possibilities to get a big Delta. Thank you both for the good tipps! Great!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.