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: 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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 6 replies
  • 1875 views
  • 0 likes
  • 2 in conversation