The SAS Output Delivery System and reporting techniques

ODS RTF Unbreakable space

Not applicable
Posts: 0

ODS RTF Unbreakable space

I am concatenating a string in a compute block of a PROC REPORT.

description= Part1 || " " || Part2;

Part1="United States"
Part2= "(Continued)"

The resulting rtf string is


I need spaces not unbreakable spaces (\~).

How do I do that?

Super Contributor
Posts: 394

Re: ODS RTF Unbreakable space

Posted in reply to deleted_user
Sorry, John. There's no way to do this with REPORT. Then nonbreaking spaces are deliberate. REPORT really wants each LINE statement to create exactly one line of output. Possibly you could post-process the RTF output but that's out of my league.
Super Contributor
Posts: 260

Re: ODS RTF Unbreakable space

Posted in reply to deleted_user
Although you cannot get rid of the unbreakable spaces inserted by proc Report, you can add your own breakable spaces where you think you should have some... Use ODS ESCAPECHAR="^" ; (for instance) and then the breakable space is ^w. Just add it in your code, something like :

description= Part1 || "^w" || Part2;

If you resize the table in the RTF document, that would cut the text between part1 and part2.

Ask a Question
Discussion stats
  • 2 replies
  • 3 in conversation