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 */
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.