BookmarkSubscribeRSS Feed
JohnChen_TW
Quartz | Level 8

Hi All,

 

I use SAS 9.4 and below is my code to superscript a registered mark:

ods escapechar='^';

^{super ^{unicode 24C7}};

 

But it is always presented as "subscript"...

Does anyone have suggestion?

6 REPLIES 6
ChrisNZ
Tourmaline | Level 20

Full code please? Is this used in a label, a title, a format, a text? Which output method?

JohnChen_TW
Quartz | Level 8

Below is the full code:

options nodate nonumber papersize=A4 orientation=landscape topmargin="2cm" leftmargin="0.8cm" bottommargin="0.8cm" rightmargin="0.8cm" missing=" ";
ods escapechar='!'; footnote3 j=l;footnote4 j=l;

title1 j=l "!S={leftmargin=0in} Study: xxx"  j=r "Report: xxx";
title2 j=r "!S={leftmargin=0in} Date: xxx";
proc report data=work.have nowd split='|'
contents="xxx";
columns no a1 a2;
define a1 /display center style=[cellwidth=20mm] 'Subject No.';
define a2 /display center style=[cellwidth=20mm] 'Collection Date';						   
footnote1 j=l ht=9pt "Note: xxx Drug !{super !{unicode 24C7}}】" ;
run;

The superscript is used in a footer.

Thank you!

ChrisNZ
Tourmaline | Level 20

This works fine for me:

ods escapechar='!'; 
footnote "Note: xxx Drug !{super !{unicode 24C7}}" ;
proc print data=sashelp.class; run;

ChrisNZ_0-1606723216008.png

I use ODS HTML. What destination do you use?

 

ChrisNZ
Tourmaline | Level 20

RTF works too. PDF causes issues with the double escape on my old version(9.4m2).

footnote "Note: xxx Drug !{super !{unicode 24C7}}" ;
footnote2 "Note: xxx Drug !{super A}" ;
proc print data=sashelp.class; run;

ChrisNZ_0-1606723722292.png

 

 

JohnChen_TW
Quartz | Level 8
The issue was caused when outputting PDF file as you shown.
Do you have any suggestion to superscript a symbol with double escape? Thank you!
BTW, I use 9.4 (TS1M7).
ChrisNZ
Tourmaline | Level 20

> The issue was caused when outputting PDF file as you shown.

It's much better that you provide the information rather than we spend time guessing.

 

>Do you have any suggestion to superscript a symbol with double escape? 

This looks like a defect to me. You should definitely contact Tech support.

In the meanwhile, have you tried using the symbol in the code?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 2082 views
  • 0 likes
  • 2 in conversation