<?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: Separate the words with '/' in the column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Separate-the-words-with-in-the-column/m-p/688849#M209355</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
	length drug1 $ 24;
	do i=1 to countw(drug,'/');
	    drug1=scan(drug,i,'/');
		output;
	end;
	drop i;
run;
proc sql;
	create table want2 as select distinct upcase(drug1) as drug1 from want;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Oct 2020 10:46:16 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-10-05T10:46:16Z</dc:date>
    <item>
      <title>Separate the words with '/' in the column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-the-words-with-in-the-column/m-p/688842#M209353</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a drug dataset for a research study. I need to separate the values by '/' in the column.&lt;/P&gt;
&lt;P&gt;Kindly go through the sample set for the reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Drug$80.;
cards;
metformin/Glicipage
Glibenclimide/glicipage
Alphaglid/glucose/SGLT2
Metformin/Glucose
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Expected Output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Drug1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Metformin&lt;/P&gt;
&lt;P&gt;Glicipage&lt;/P&gt;
&lt;P&gt;Glibenclimide&lt;/P&gt;
&lt;P&gt;Alphaglid&lt;/P&gt;
&lt;P&gt;Glucose&lt;/P&gt;
&lt;P&gt;SGLT2&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 10:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-the-words-with-in-the-column/m-p/688842#M209353</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2020-10-05T10:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Separate the words with '/' in the column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-the-words-with-in-the-column/m-p/688849#M209355</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
	length drug1 $ 24;
	do i=1 to countw(drug,'/');
	    drug1=scan(drug,i,'/');
		output;
	end;
	drop i;
run;
proc sql;
	create table want2 as select distinct upcase(drug1) as drug1 from want;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Oct 2020 10:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-the-words-with-in-the-column/m-p/688849#M209355</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-05T10:46:16Z</dc:date>
    </item>
  </channel>
</rss>

