<?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: Splitting string data in multiple rows. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455638#M70033</link>
    <description>&lt;P&gt;You're missing the OUTPUT statement to create a new record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop;
set Import;

do i = 1 to countw(Rule_Results,';');

_Rule_Results_ = scan(Rule_Results,i,';');

OUTPUT;
end;


run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Apr 2018 15:02:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-19T15:02:55Z</dc:date>
    <item>
      <title>Splitting string data in multiple rows.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455635#M70032</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I'm struggling a little with extracting string data from multiple rows via a delimiter. I have 1 variable named Rule_Results with multiple observations.&lt;/P&gt;
&lt;P&gt;The data is pretty standard through out the rows, here's a snapshot of three rows:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;USERKNOWN=Y;SIGMATCH=N;SIGMATCHDEVICEALIAS=N;DEVICEIDCHECK=N;EXCEPTION=N;UNTRUSTEDIP=N; USERKNOWN=Y;SIGMATCH=N;SIGMATCHDEVICEALIAS=N;DEVICEIDCHECK=N;EXCEPTION=N;UNTRUSTEDIP=N; USERKNOWN=Y;SIGMATCH=N;SIGMATCHDEVICEALIAS=N;DEVICEIDCHECK=N;EXCEPTION=N;UNTRUSTEDIP=N;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What im trying to do is us the ";" delimiter to extract the data in between into a new row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found the following on these boards but am struggling to get it to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data loop;&lt;BR /&gt; set Import;&lt;/P&gt;
&lt;P&gt;do i = 1 to countw(Rule_Results,';');&lt;BR /&gt;_Rule_Results_ = scan(Rule_Results,i,';');&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated. Stret&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 15:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455635#M70032</guid>
      <dc:creator>Stretlow</dc:creator>
      <dc:date>2018-04-19T15:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string data in multiple rows.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455638#M70033</link>
      <description>&lt;P&gt;You're missing the OUTPUT statement to create a new record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop;
set Import;

do i = 1 to countw(Rule_Results,';');

_Rule_Results_ = scan(Rule_Results,i,';');

OUTPUT;
end;


run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Apr 2018 15:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455638#M70033</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-19T15:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string data in multiple rows.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455642#M70034</link>
      <description>So close!!!

Thanks for the help</description>
      <pubDate>Thu, 19 Apr 2018 15:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-string-data-in-multiple-rows/m-p/455642#M70034</guid>
      <dc:creator>Stretlow</dc:creator>
      <dc:date>2018-04-19T15:10:55Z</dc:date>
    </item>
  </channel>
</rss>

