<?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: i want to remove data comes before first comma in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606904#M176321</link>
    <description>&lt;P&gt;Your data is character, right?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 09:26:03 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-11-25T09:26:03Z</dc:date>
    <item>
      <title>i want to remove data comes before first comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606902#M176320</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I need one minor help.&lt;/P&gt;&lt;P&gt;Below is my input data;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;802,803&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;803,804&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;60,61&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;817,818&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;817,818,819&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;810,811,812&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;55,56&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;55,56,57&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want output like below;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;803&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;804&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;61&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;818&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;818,819&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;811,812&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;56&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;56,57&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to remove data comes before first comma.&lt;/P&gt;&lt;P&gt;How can I do this.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606902#M176320</guid>
      <dc:creator>Soham0707</dc:creator>
      <dc:date>2019-11-25T09:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: i want to remove data comes before first comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606904#M176321</link>
      <description>&lt;P&gt;Your data is character, right?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606904#M176321</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-25T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: i want to remove data comes before first comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606906#M176323</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606906#M176323</guid>
      <dc:creator>Soham0707</dc:creator>
      <dc:date>2019-11-25T09:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: i want to remove data comes before first comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606907#M176324</link>
      <description>&lt;P&gt;Do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input value $ 1-20;
datalines;
802,803
803,804
60,61
817,818
817,818,819
810,811,812
55,56
55,56,57
;

data want;
  set have;
  value = prxchange("s/([^,]+),//", 1, value);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;value
803
804
61
818
818,819
811,812
56
56,57&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606907#M176324</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-25T09:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: i want to remove data comes before first comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606909#M176325</link>
      <description>&lt;P&gt;The following finds the first comma and then uses &lt;FONT face="courier new,courier"&gt;substr()&lt;/FONT&gt; to get the text after that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   input text : $char50.;

   datalines;
802,803
803,804
60,61
817,818
817,818,819
810,811,812
55,56
55,56,57
;

data want;
   set have;
   text2 = substr(text,findc(text,',')+1);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606909#M176325</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-11-25T09:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: i want to remove data comes before first comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606910#M176326</link>
      <description>&lt;P&gt;Thank you so much ...&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-want-to-remove-data-comes-before-first-comma/m-p/606910#M176326</guid>
      <dc:creator>Soham0707</dc:creator>
      <dc:date>2019-11-25T09:42:40Z</dc:date>
    </item>
  </channel>
</rss>

