<?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: Create Line Feed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501897#M133889</link>
    <description>&lt;P&gt;Translate replaces characters from the list with equivalent characters from the replace list, not the whole word.&amp;nbsp; Tranwrd is the tool for replacing a whole text string with something else.&amp;nbsp; Per the manual:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000215153.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000215153.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prx is simply replacing the text string with the text string /n as you say, and that is correct.&amp;nbsp; The /n means newline in some file formats,much like ^{newline} can be used in rtf code.&amp;nbsp; Therefore the code is working, but your output renderer (rtf, pdf etc.) is either not setup to use the /n syntax, or its not valid for that renderer.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 13:37:12 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-10-05T13:37:12Z</dc:date>
    <item>
      <title>Create Line Feed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501874#M133872</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to substitute line feed to my character variable, in place of a pattern. I have used following attempts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;translate(TRIM(Itemdata_Value),'0a'x,'XXXXXXXXX');&lt;OL&gt;&lt;LI&gt;Issue: It is creating both line feed and carriage return for some reason. i.e 2 line breaks, where I want one.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;prxchange("s/&lt;SPAN&gt;XXXXXXXXX&lt;/SPAN&gt;/\n/", -1, Itemdata_Value);&lt;OL&gt;&lt;LI&gt;It simply replaced XXXXXXXX with text /n, not new line&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ref:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/td-p/27843" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/td-p/27843&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 13:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501874#M133872</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-10-05T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Feed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501892#M133884</link>
      <description>&lt;P&gt;Use:&lt;/P&gt;
&lt;PRE&gt;itemdata_value=tranwrd(itemdata_value,"XXXXXXXX",'0a'x);
&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2018 13:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501892#M133884</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-05T13:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Feed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501895#M133887</link>
      <description>This worked,Thank you, but it is very strange the translate did not work and /n character did not resolve to new line.&lt;BR /&gt;If any one can clarify in this thread, then it may help someone in future.</description>
      <pubDate>Fri, 05 Oct 2018 13:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501895#M133887</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-10-05T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Feed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501897#M133889</link>
      <description>&lt;P&gt;Translate replaces characters from the list with equivalent characters from the replace list, not the whole word.&amp;nbsp; Tranwrd is the tool for replacing a whole text string with something else.&amp;nbsp; Per the manual:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000215153.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000215153.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prx is simply replacing the text string with the text string /n as you say, and that is correct.&amp;nbsp; The /n means newline in some file formats,much like ^{newline} can be used in rtf code.&amp;nbsp; Therefore the code is working, but your output renderer (rtf, pdf etc.) is either not setup to use the /n syntax, or its not valid for that renderer.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 13:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Line-Feed/m-p/501897#M133889</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-05T13:37:12Z</dc:date>
    </item>
  </channel>
</rss>

