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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 905 views
  • 1 like
  • 2 in conversation