<?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: how to splite the word before cama in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613497#M179175</link>
    <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;scan(b,1,',')&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Dec 2019 09:19:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-12-23T09:19:40Z</dc:date>
    <item>
      <title>how to splite the word before cama</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613495#M179173</link>
      <description>&lt;P&gt;data have ;&lt;/P&gt;
&lt;P&gt;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NEW OTC OR RX DRUG ADDED, HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED, HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED, HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED, HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;NEW OTC OR RX DRUG ADDED,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;NEW OTC OR RX DRUG ADDED,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STUDY TREATMENT DISCONTINUED PERMANENTLY,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;STUDY TREATMENT DISCONTINUED PERMANENTLY,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;STUDY TREATMENT DISCONTINUED PERMANENTLY,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;STUDY TREATMENT DISCONTINUED PERMANENTLY,&amp;nbsp;Non-drug therapy,&amp;nbsp;HOSPITALIZATION (INCLUDES ER VISITS)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;NEW OTC OR RX DRUG ADDED&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STUDY TREATMENT DISCONTINUED PERMANENTLY&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;STUDY TREATMENT DISCONTINUED PERMANENTLY&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;STUDY TREATMENT DISCONTINUED PERMANENTLY&lt;/P&gt;
&lt;P&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;STUDY TREATMENT DISCONTINUED PERMANENTLY&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 09:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613495#M179173</guid>
      <dc:creator>teja5959</dc:creator>
      <dc:date>2019-12-23T09:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to splite the word before cama</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613497#M179175</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;scan(b,1,',')&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 09:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613497#M179175</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-23T09:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to splite the word before cama</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613498#M179176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127990"&gt;@teja5959&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the scan function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	b2 = scan(b,1,",");
	drop b;
	rename b2 = b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or the prxchange function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	b2 = prxchange('s/,.+//',1,b);
	drop b;
	rename b2 = b;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 09:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613498#M179176</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-23T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to splite the word before cama</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613499#M179177</link>
      <description>&lt;P&gt;Try this SAS Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input number texts $80.;
datalines;
001                NEW OTC OR RX DRUG ADDED, HOSPITALIZATION (INCLUDES ER VISITS)
002               NEW OTC OR RX DRUG ADDED, Non-drug therapy, HOSPITALIZATION (INCLUDES ER VISITS)
003              STUDY TREATMENT DISCONTINUED PERMANENTLY, Non-drug therapy, HOSPITALIZATION (INCLUDES ER VISITS)
;;;;
run;

data want;
set have;
texts=scan(texts,1,',');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 09:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-splite-the-word-before-cama/m-p/613499#M179177</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2019-12-23T09:22:53Z</dc:date>
    </item>
  </channel>
</rss>

