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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 544 views
  • 1 like
  • 3 in conversation