The SAS Output Delivery System and reporting techniques

ODS RTF Unbreakable space

Reply
N/A
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

United\~States\~(Continued)

I need spaces not unbreakable spaces (\~).

How do I do that?

JK
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.

Regards,
Olivier
Ask a Question
Discussion stats
  • 2 replies
  • 160 views
  • 0 likes
  • 3 in conversation