BookmarkSubscribeRSS Feed
KalaBhairava
Quartz | Level 8

 

data new;

set old;

do param="LS Mean (SE) A"; output; end;

run;

 

Hear i want hightailed A as superscript with in data set , how can ? 

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

Do you want A to be a superscript within a data set? Why?

KalaBhairava
Quartz | Level 8

Yes, Please find the below, i want final report like this.

 

 

Week 2
Change from baseline
Number
Mean (SD) -
LS Mean (SE) a -
LS Mean Diff vs. matching placebo (95% CI) a -
P-value vs. matching placebo a -

 

like this i have multiple sections , so i am going to create macro with ion data set level.

ChrisNZ
Tourmaline | Level 20

Data sets contain strings (and numbers). Not formatting.

 

The string can be a markup for some language, for example

A = "E=mc<superscript>2</superscript>";

but it's still a string,

ChrisNZ
Tourmaline | Level 20

The other option if you have UTF8 data set is to store Unicode values.

Here are the values you might want to use https://www.fileformat.info/info/unicode/block/superscripts_and_subscripts/list.htm

It's not an a anymore though, it's a different character.

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 25. 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
  • 4 replies
  • 767 views
  • 0 likes
  • 3 in conversation