BookmarkSubscribeRSS Feed
Kristinos
Calcite | Level 5

Hi!

I am making some sgplots, but the variables at the y-axis have capital letters in subscript: e.g. the "G" in "NEG" should be subscript. Is this possible to do in a sgplot? I have found a code for using unicode (http://support.sas.com/kb/39/267.html), but it seems like the subscript capital G does not have an unicode?? I am working in SAS 9.4 for windows

1 REPLY 1
Reeza
Super User

There is a code for the subscript Capital Letter G, it's 262.

 

data want;
str1=unicode('\u0041\u0262');
put str1;
run;

Here's the brute force search method for Unicode characters - check them all:

data unicode_list;
do i=1 to 4000;
str = catt('\u', put(i, z4.));
str1=unicode(str);
output;
end;
run;

@Kristinos wrote:

Hi!

I am making some sgplots, but the variables at the y-axis have capital letters in subscript: e.g. the "G" in "NEG" should be subscript. Is this possible to do in a sgplot? I have found a code for using unicode (http://support.sas.com/kb/39/267.html), but it seems like the subscript capital G does not have an unicode?? I am working in SAS 9.4 for windows


 

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 624 views
  • 1 like
  • 2 in conversation