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

When I use a webout file as output for a stored process, I use ods html text="bla bla bla" to write some information in my output file.

I found out that I can use ^n to go to the next line:

ods html text="bla bla ^n bla"

results in

bla bla

bla

is there something alike for a tab or for several spaces?

I would like to have this result:

bla bla     bla

many thanks!


1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Look up the ODS ESCAPECHAR statement. But is dependent on version of SAS.

Their are a number of  functions that allow manipulation of text that you might need. In your case it is likely to be NBSPACE function.

ODS ESCAPECHAR='^'; /* declare the character to use as escape once */

use

ods html text "bla bla ^{NBSPACE 3} bla"; /* to insert 3 spaces */

View solution in original post

2 REPLIES 2
OS2Rules
Obsidian | Level 7

Barbier:

I had the same problem a while ago - it seems that there is no way to do this.

I even tried to make a table and put each block of text into different columns, but that didn't work either.

Tech Support told me that "you can't get there from here".

We wound up separating text with obscure characters.

Sorry I can;'t be of more help.

ballardw
Super User

Look up the ODS ESCAPECHAR statement. But is dependent on version of SAS.

Their are a number of  functions that allow manipulation of text that you might need. In your case it is likely to be NBSPACE function.

ODS ESCAPECHAR='^'; /* declare the character to use as escape once */

use

ods html text "bla bla ^{NBSPACE 3} bla"; /* to insert 3 spaces */

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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