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!
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 */
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.
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 */
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.
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.
Ready to level-up your skills? Choose your own adventure.