<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Line break in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503467#M134532</link>
    <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Proc Report, I have pasted some of the code I've been using!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2018 16:48:38 GMT</pubDate>
    <dc:creator>kmardinian</dc:creator>
    <dc:date>2018-10-11T16:48:38Z</dc:date>
    <item>
      <title>Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503447#M134521</link>
      <description>&lt;P&gt;Hi, I have this line of code below that is spitting out a column 4 with a p-value, risk difference, and confidence interval. I want to find a way to create a line break after the p-value so that the output looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0.005 (p-value)&lt;/P&gt;&lt;P&gt;0.125 [0.25,1.50] (risk diff, CI)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data freq3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; length rowlabel $100 col_1 col_2&amp;nbsp; col_3 col_4 $32 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set freq1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *rowlabel='&amp;nbsp;&amp;nbsp;&amp;nbsp; Risk Difference (95% CI)^{super 3}';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_4=strip(put(p_pchi, 8.3))||strip(put(_rdif2_, 8.3))||' ['||strip(put(xl_rdif2, 8.3))||', '||strip(put(xu_rdif2, 8.3))||']';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_1=''; col_2=''; col_3='';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; roworder=2;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 15:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503447#M134521</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-10-11T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503461#M134528</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/139341"&gt;@kmardinian&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I have this line of code below that is spitting out a column 4 with a p-value, risk difference, and confidence interval. I want to find a way to create a line break after the p-value so that the output looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0.005 (p-value)&lt;/P&gt;
&lt;P&gt;0.125 [0.25,1.50] (risk diff, CI)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data freq3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; length rowlabel $100 col_1 col_2&amp;nbsp; col_3 col_4 $32 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set freq1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *rowlabel='&amp;nbsp;&amp;nbsp;&amp;nbsp; Risk Difference (95% CI)^{super 3}';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_4=strip(put(p_pchi, 8.3))||strip(put(_rdif2_, 8.3))||' ['||strip(put(xl_rdif2, 8.3))||', '||strip(put(xu_rdif2, 8.3))||']';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_1=''; col_2=''; col_3='';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; roworder=2;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated! Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would make another observation for the second row.&amp;nbsp; Splitting within the cell can be done with the split character assuming something like PROC REPORT but you will need to supply more info.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503461#M134528</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-10-11T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503463#M134529</link>
      <description>Hi:&lt;BR /&gt;  What is your destination of interest? RTF, PDF, HTML, Excel? Normally, you would use a ESCAPECHAR and {newline} to insert a line break. but it depends on the destination, which you don't show. You only show creating the variable, you don't show how you're displaying the variable -- ODS RTF? ODS PDF??? What procedure? PRINT, REPORT???&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 11 Oct 2018 16:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503463#M134529</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-10-11T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503464#M134530</link>
      <description>&lt;P&gt;Ok, making another option was going to be my second option. I assumed I could split in the data step. If I create a new observation where they are both in column 4 so that it was like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data freq2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; length col_4 $32;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set freq1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_4=strip(put(p_pchi, 8.3));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; roworder=2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; outcome=1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data freq3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; length rowlabel $100 col_1 col_2&amp;nbsp; col_3 col_4 $32 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set freq1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *rowlabel='&amp;nbsp;&amp;nbsp;&amp;nbsp; Risk Difference (95% CI)^{super 3}';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_4=strip(put(_rdif2_, 8.3))||' ['||strip(put(xl_rdif2, 8.3))||', '||strip(put(xu_rdif2, 8.3))||']';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col_1=''; col_2=''; col_3='';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; roworder=2;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then how would I split it in the proc report statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc report nowd center spanrows missing data=all split='*'&amp;nbsp;&amp;nbsp; list out=test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;style(report)=[width=100% frame=void rules=none cellspacing=0 padding=1pt font=('Courier New', 8pt)]&lt;BR /&gt;style(header)=[bordertopcolor=balck bordertopwidth=1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderbottomcolor=black borderbottomwidth=1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background=white font=('Courier New', 8pt) textalign=c ]&lt;BR /&gt;style(column)=[font=('Courier New', 8pt)&amp;nbsp; ASIS=ON ] ;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; columns&amp;nbsp; roworder rowlabel ("X*(N=&amp;amp;N1.)" col1) ("Y*(N=&amp;amp;N2)" col2) ("Total*(N=&amp;amp;N3)" col3) ('p-value^{super 1}*Risk Difference^{unicode delta_u}(95% CI)' col_4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *define _PB_page/group noprint;&lt;BR /&gt;&amp;nbsp; * define vorder/order noprint;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define roworder/order noprint;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define rowlabel/display '' style(column)=[width=1.5in] flow;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define col1/display&amp;nbsp; '' style(column)=[width=0.8in] center flow;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define col2/display ''&amp;nbsp; style(column)=[width=0.8in] center flow;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define col3/display '' style(column)=[width=0.8in] center flow;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define col_4/display ' '&amp;nbsp; style(column)=[width=1.2in] center flow;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503464#M134530</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-10-11T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503467#M134532</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Proc Report, I have pasted some of the code I've been using!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/503467#M134532</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-10-11T16:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865056#M341596</link>
      <description>&lt;P&gt;Hi, Cynthia:&lt;/P&gt;&lt;P&gt;I recalled there were some special line break commands associated with escapechar, such as ~m (to specify the break location of a string)&amp;nbsp; and ~-2n(to force a line wrapping corresponding to ~m location). Are those commands still supported by SAS 9.4?&lt;/P&gt;&lt;P&gt;e,g.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;computer after;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;line "abbreviation:&amp;nbsp; ~mN = Total subjects treated with the study drug ...&amp;nbsp; &amp;nbsp; ~-2nM= subjects who discontinued treatment..." ;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 18:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865056#M341596</guid>
      <dc:creator>DonZ</dc:creator>
      <dc:date>2023-03-18T18:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865104#M341619</link>
      <description>Hi:&lt;BR /&gt;  There were some special line breaking and line wrapping ESCAPECHAR commands in the original version of ODS ESCAPECHAR (V8.2). However, when ESCAPECHAR was revamped for SAS 9 I believe the special ones were deprecated and may not work in any destinations.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 19 Mar 2023 18:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865104#M341619</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-03-19T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865108#M341622</link>
      <description>&lt;P&gt;Thanks, Cynthia!&lt;/P&gt;&lt;P&gt;However, if I want to reserve some monocharacters, say 7 char spaces in the next row indentation, adding&amp;nbsp; ~_~_~_~_~_~_~_ of using pretext = '\pnhang\fi-222\li222 ' (hard to locate exact position) is not convenient.&amp;nbsp;Is there any better way to achieve the same results?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example: a footnote as followings in a rtf table:&lt;/P&gt;&lt;P&gt;Abbreviation: N = ............, n = .............., m = ...........;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; R = ......;&amp;nbsp; T = .......;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (indentation aligned up with the first-row text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 19:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865108#M341622</guid>
      <dc:creator>DonZ</dc:creator>
      <dc:date>2023-03-19T19:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865117#M341629</link>
      <description>Hi: Most of the ODS output is proportional spaced font, so I"m not sure what you mean by "monocharacters". If you are going to change to a monospace font like Courier New, then number of spaces might work. The FLOW option is ignored for ODS destinations. What is your destination of interest. Did I miss whether you were using ODS RTF, ODS PDF, ODS HTML or ??? I see you mention RTF control strings, but I did not see ODS RTF statements in the code you posted. My tendency is to use INDENT= or LEFTMARGIN=, I think I've posted examples of both of those, but they depend on the destination.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 19 Mar 2023 21:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-break-in-SAS/m-p/865117#M341629</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-03-19T21:16:02Z</dc:date>
    </item>
  </channel>
</rss>

