<?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 Perl to remove \X0A\ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266708#M52620</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;For your kind information, I am trying to remove \X0A\ with&amp;nbsp;a space&amp;nbsp;from my text "string" using perl in base sas.&lt;/P&gt;&lt;P&gt;Can someone modify my code to make it functional. Although I can use tranword funtion to do so but my desire is to use perl because in future by using escape character function, I will able to use it in variety of other situations in text mining.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code: &lt;FONT face="Arial" size="3"&gt;[&lt;/FONT&gt;for text substituion=s/pattern/new text/]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; test1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;string= prxchange(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"s/\/X0A\/ /"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;,-&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;,string);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thank you in advance for your kind reply. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Deepak&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 14:04:48 GMT</pubDate>
    <dc:creator>DeepakSwain</dc:creator>
    <dc:date>2016-04-27T14:04:48Z</dc:date>
    <item>
      <title>Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266708#M52620</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;For your kind information, I am trying to remove \X0A\ with&amp;nbsp;a space&amp;nbsp;from my text "string" using perl in base sas.&lt;/P&gt;&lt;P&gt;Can someone modify my code to make it functional. Although I can use tranword funtion to do so but my desire is to use perl because in future by using escape character function, I will able to use it in variety of other situations in text mining.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code: &lt;FONT face="Arial" size="3"&gt;[&lt;/FONT&gt;for text substituion=s/pattern/new text/]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; test1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;string= prxchange(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"s/\/X0A\/ /"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;,-&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;,string);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thank you in advance for your kind reply. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Deepak&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 14:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266708#M52620</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-04-27T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266754#M52639</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prxchange("s/\x0a/ /o", -1, string)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266754#M52639</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-04-27T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266774#M52648</link>
      <description>&lt;P&gt;Does the string contain the actual sequence /X0A/ or does it contain the character='0A'x aka ascii character 10?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 17:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266774#M52648</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-27T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266837#M52676</link>
      <description>It contains the actual string for example: "Nothing abnormality\X0\ is detected."</description>
      <pubDate>Wed, 27 Apr 2016 19:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266837#M52676</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-04-27T19:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266838#M52677</link>
      <description>It contains the actual string for example: "Nothing abnormality\X0A\ is detected."</description>
      <pubDate>Wed, 27 Apr 2016 19:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266838#M52677</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-04-27T19:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266841#M52679</link>
      <description>&lt;P&gt;If those \X0A\ are actual characters then&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prxchange("s/\\X0A\\/ /io", -1, string)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will work. Note I assumed it is a zero between X and A. Correct if needed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 19:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266841#M52679</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-04-27T19:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266842#M52680</link>
      <description>It contains the actual string for example: "Nothing abnormality\X0A\ is detected." . It may be noted that there is "\" both before and after X0A. which has to be removed also.</description>
      <pubDate>Wed, 27 Apr 2016 19:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266842#M52680</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-04-27T19:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to remove \X0A\</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266844#M52681</link>
      <description>Hi there, it works fine. Thanks a lot.</description>
      <pubDate>Wed, 27 Apr 2016 19:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-to-remove-X0A/m-p/266844#M52681</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-04-27T19:50:31Z</dc:date>
    </item>
  </channel>
</rss>

