DATA Step, Macro, Functions and more

Controlling the split of text fields in Proc Report

Accepted Solution Solved
Reply
Respected Advisor
Posts: 4,640
Accepted Solution

Controlling the split of text fields in Proc Report

Hi all, how can you control the position of text splits in Proc Report table cells? I tried using "/" and replacing unwanted splits with nonbreaking spaces but nothing does it. How can the equivalent of option SPLIT= be achieved for destination RTF? Thanks - PG

PG

Accepted Solutions
Solution
‎05-02-2013 01:26 PM
Super Contributor
Posts: 394

Re: Controlling the split of text fields in Proc Report

PG, while those escape character sequences will certainly work, I'd like to point out that they've been superseded in new releases by the ODS inline functions documented here. For example (assuming the escape character is ~), the linefeed function is ~{newline} and nonbreaking space is ~{nbspace}.

View solution in original post


All Replies
Super Contributor
Posts: 1,636

Re: Controlling the split of text fields in Proc Report

Hi PG,

I wish I were smart enough to provide an answer!:smileysilly::smileyblush:Smiley Sad

Respected Advisor
Posts: 3,777

Re: Controlling the split of text fields in Proc Report

I think the soft break is /line.

Lookup the topic inline formatting, and provide and small example we can fiddle with.

Your gonna need to start learning RTF codes.  :smileycry:

Respected Advisor
Posts: 4,640

Re: Controlling the split of text fields in Proc Report

Thanks DN for your answer and Linlin for your sympathy. I just found the answer in Art Carpenter's book :

  http://books.google.ca/books?id=2XaexgsBRQ0C&lpg=PA283&ots=odCUTOmL4s&dq=SAS%20%22proc%20report%22%2...

  Using escape character sequences such as ^1n for linefeed and ^_ for nonbreaking space does the trick.

PG


PG
Solution
‎05-02-2013 01:26 PM
Super Contributor
Posts: 394

Re: Controlling the split of text fields in Proc Report

PG, while those escape character sequences will certainly work, I'd like to point out that they've been superseded in new releases by the ODS inline functions documented here. For example (assuming the escape character is ~), the linefeed function is ~{newline} and nonbreaking space is ~{nbspace}.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 245 views
  • 6 likes
  • 4 in conversation