<?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: CATX NEW LINE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528911#M144427</link>
    <description>&lt;P&gt;If you use proc report, you can insert RTF codes with the ~R prefix.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://www.pharmasug.org/proceedings/2013/IB/PharmaSUG-2013-IB08.pdf" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 21:36:49 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-01-21T21:36:49Z</dc:date>
    <item>
      <title>INSERT NEW LINE IN RTF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528878#M144407</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this code to put the data I need separated by a comma. Now, what I need is a new line after the comma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I have this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.WANT" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;1 due to&amp;nbsp;symptom1,2 due to &lt;SPAN&gt;symptom2&lt;/SPAN&gt;,1 due to &lt;SPAN&gt;symptom3&lt;/SPAN&gt;,3 due to &lt;SPAN&gt;symptom4&lt;/SPAN&gt;,1 due to symptom5, 1 due to symptom6, and so on..&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;STRONG&gt;What I need is&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;1 due to&amp;nbsp;&lt;/SPAN&gt;symptom1,&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;2 due to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;symptom12&lt;/SPAN&gt;,&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;1 due to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;symptom3&lt;/SPAN&gt;,&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;3 due to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;symptom4&lt;/SPAN&gt;,&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;1 due to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;symptom5&lt;/SPAN&gt;,&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;1 due to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;symptom6,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;&amp;nbsp;and so on..&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;My code :&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;data want;&lt;BR /&gt;length cat $10000;&lt;BR /&gt;do until (last.death_onstudy);&lt;BR /&gt;set freqs;&lt;BR /&gt;by death_onstudy notsorted;&lt;BR /&gt;cat=catx(',',cat,death_reason);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&lt;SPAN&gt;Please help get each symptom to a new line. Thanks very much in advance!!!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jan 2019 22:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528878#M144407</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2019-01-21T22:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528880#M144409</link>
      <description>&lt;P&gt;You can use something like&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;CAT=catx(','||'0D0A'x, CAT&amp;nbsp;DEATH_REASON);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Where it gets used depends on the output.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You won't see the LF in an HTML report for example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 20:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528880#M144409</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-21T20:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528882#M144410</link>
      <description>&lt;P&gt;A new line WHERE?&amp;nbsp; Your code seems to be just creating a character strings, not a report.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 20:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528882#M144410</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-21T20:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528883#M144411</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
str='1 due to symptom1,2 due to symptom2,1 due to symptom3,3 due to symptom4,1 due to symptom5, 1 due to symptom6';
run;

data want;
set have;
do _n_=1 to countw(str,',');
want=cats(scan(str,_n_,','),',');
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 20:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528883#M144411</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-21T20:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528884#M144412</link>
      <description>&lt;P&gt;Thanks, I need it in the same cell. This puts a new row for each line, but I need everything in one cell.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 20:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528884#M144412</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2019-01-21T20:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528885#M144413</link>
      <description>&lt;P&gt;Adding the&amp;nbsp;&lt;SPAN&gt;'0D0A'x&lt;/SPAN&gt;&amp;nbsp;didn't work for me.&amp;nbsp;I am creating rtf&amp;nbsp;destination, but its all in one big line separated by commas. It doesn't add a line after commas.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 20:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528885#M144413</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2019-01-21T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528893#M144418</link>
      <description>&lt;P&gt;I need to use it in an ODS RTF destination.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 21:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528893#M144418</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2019-01-21T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528896#M144420</link>
      <description>&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data T; 
  A=catx(','||'0d0a'x , 'ABC', 'DEF'); 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 125px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26417i98BB94F2D5C38A5C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 21:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528896#M144420</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-21T21:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528911#M144427</link>
      <description>&lt;P&gt;If you use proc report, you can insert RTF codes with the ~R prefix.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://www.pharmasug.org/proceedings/2013/IB/PharmaSUG-2013-IB08.pdf" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 21:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528911#M144427</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-21T21:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528933#M144437</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ODS RTF supports the ESCAPECHAR and the {newline} function. In the example below, I declared my ESCAPECHAR to be caret ^, as shown in the code and it produced the same output in both PROC PRINT and PROC REPORT.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_escapechar_rtf.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26419i5078540A0F6139D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_escapechar_rtf.png" alt="use_escapechar_rtf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 22:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528933#M144437</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-21T22:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT NEW LINE IN RTF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528934#M144438</link>
      <description>&lt;P&gt;Solution that worked for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used ods escapechar='^';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added ^n where I want my line break. It doesn't show in the listing or dataset but t works on the rtf&amp;nbsp;file and html&amp;nbsp;file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;cat=catx(',^n',cat,death_reason);&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 22:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528934#M144438</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2019-01-21T22:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT NEW LINE IN RTF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528937#M144440</link>
      <description>Hi:&lt;BR /&gt;  That use of newline ^n is older code which has been replaced by the function-like syntax I showed in my post.&lt;BR /&gt;  It may be that someday the use of the older ^n will no longer work, so I'd recommend to eventually move to ^{newline 1} so your code is current.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 21 Jan 2019 23:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528937#M144440</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-21T23:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT NEW LINE IN RTF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528938#M144441</link>
      <description>&lt;P&gt;Perfect! I just changed my code to ^newline. Thanks so much.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 23:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/528938#M144441</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2019-01-21T23:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: CATX NEW LINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/529600#M144726</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;I tried escaping a new line but never found the correct syntax.&lt;/P&gt;
&lt;P&gt;I tried&lt;FONT face="courier new,courier"&gt; \line&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;\par&lt;/FONT&gt; and even unicode values.&lt;/P&gt;
&lt;P&gt;It turns out &lt;FONT face="courier new,courier"&gt;{newline}&lt;/FONT&gt;&amp;nbsp;does it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not easy finding the proper syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/For-those-interested-in-crypto-Bitcoin-SAS-Format-bitcoin/m-p/447763/highlight/true#M112548" target="_self"&gt;unicode implementation&lt;/A&gt; (&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332877#M11597" target="_self"&gt;and here&lt;/A&gt;) &amp;nbsp;I find this confusing.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 02:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INSERT-NEW-LINE-IN-RTF/m-p/529600#M144726</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-24T02:39:47Z</dc:date>
    </item>
  </channel>
</rss>

