BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,
if i submit the following code:
ods escapechar="^";
title " x^{super 3}";

proc sgplot data=sashelp.class;
scatter x= height y= weight;
run;
it's written in my log SUPER FUNCTION NOT DEFINED IN THIS TAGSET

How can i do to define my super function to write my title as i want ?

Thank you
have a nice week end in few hours
3 REPLIES 3
DanH_sas
SAS Super FREQ
Change SUPER to SUP and it should work for you.

Thanks!
Dan
DanH_sas
SAS Super FREQ
My apologies, I misspoke. The SG procedures support the UNICODE function inline with the title (and other strings) but not super and sub. You can get around this by specifying NOGTITLE on your ODS HTML statement.

Thanks!
Dan
Cynthia_sas
SAS Super FREQ
Hi:
Here's an example that shows the way to use unicode characters for super/subscript in "classic" SAS/GRAPH and using SG procedures. (There are other ways with classic SAS/GRAPH to insert super/sub scripts with MOVE commands in the title, but these methods are much easier.) Refer to Windows Character Map or any other list of UNICODE characters to find out the values for other numbers. Note that many of the values for super/sub unicode characters start in the 20xx range and not the 00xx range.

Thanks, Dan for helping on the SGPLOT example!

cynthia
[pre]
ods listing close;
**1) Using Unicode font with hex characters in "classic SAS/GRAPH";
ods html file='testuni_sasgraph92.html' style=analysis;

title h=14pt 'superscript one' f='Arial Unicode MS/unicode' '00B9'x;
title3 h=14pt 'superscript three' f='Arial Unicode MS/unicode' '00B3'x;
footnote "version: &sysvlong4";

proc gplot data=sashelp.class;
plot height*weight;
run;
quit;
ods _all_ close;
title; footnote;

**2) Using UNICODE function with SG Procedures;
ods html file='testuni_sgproc92.html' style=analysis;
ods escapechar='^';
title h=14pt "superscript one ^{unicode '00B9'x}";
title3 h=14pt "superscript three ^{unicode '00B3'x}";
footnote "version: &sysvlong4";

proc sgplot data=sashelp.class;
scatter x=height y=weight;
run;
ods _all_ close;
title; footnote;
[/pre]

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1515 views
  • 0 likes
  • 3 in conversation