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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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