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



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1265 views
  • 0 likes
  • 3 in conversation