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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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