BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SASuserlot
Barite | Level 11

I have the variable value as this in my dataset

Randomized,^nControl ,^nCrossr^n safety/efficacy/clinical trial

^n used to in the proc report to read every word after this will display in next line (excapechar=^)

like this need to be displayed in my excel ods shell

Randomized,

control placebo,

cross,

safety/efficacy/clinical trial

But it displaying as

Randomized,

control placebo,

cross,

safety/efficacy/clinical

trial

by the way this is the longest string in the Variable, I have small one before and after it, so assigned the length . any suggestions greatly appreciated

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Have you ensured the width of the cell is large enough? 

 

View solution in original post

4 REPLIES 4
jimbarbour
Meteorite | Level 14

Well, an imperfect solution at best, but you could try replacing the space with an underscore.  Like this:  

safety/efficacy/clinical_trial.  You could also try a non display character like '1A'x or '1F'x, but test thoroughly.  

 

Jim

Reeza
Super User

Have you ensured the width of the cell is large enough? 

 

SASuserlot
Barite | Level 11

I tried increasing the cell width, but no use for some reason.

SASuserlot
Barite | Level 11
Thanks, for some reason I increased width a lot then it worked now. Did not expected the width is that big compare to other

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 2383 views
  • 1 like
  • 3 in conversation