ods html text=""; how to put a tab or several blanks?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

ods html text=""; how to put a tab or several blanks?

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!



Accepted Solutions
Solution
‎09-06-2012 10:45 AM
Super User
Posts: 11,343

Re: ods html text=""; how to put a tab or several blanks?

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


All Replies
Super Contributor
Posts: 358

Re: ods html text=""; how to put a tab or several blanks?

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.

Solution
‎09-06-2012 10:45 AM
Super User
Posts: 11,343

Re: ods html text=""; how to put a tab or several blanks?

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 */

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 214 views
  • 0 likes
  • 3 in conversation