<?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 Extract words delimited by a text field in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556699#M9879</link>
    <description>&lt;PRE class="tw-data-text tw-ta tw-text-small"&gt;&lt;SPAN&gt;I have a text field with the words delimited by; .
the number of words is fixed.
how can I extract all the words from the text field? &lt;BR /&gt;&lt;/SPAN&gt;ex: &lt;BR /&gt;Row 01: 299999;Pippo;45.89;Pluto;Sas&lt;BR /&gt;Row 02: 7777;George;4567.2;David;Enterprise&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 May 2019 08:58:25 GMT</pubDate>
    <dc:creator>daniele_1306</dc:creator>
    <dc:date>2019-05-07T08:58:25Z</dc:date>
    <item>
      <title>Extract words delimited by a text field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556699#M9879</link>
      <description>&lt;PRE class="tw-data-text tw-ta tw-text-small"&gt;&lt;SPAN&gt;I have a text field with the words delimited by; .
the number of words is fixed.
how can I extract all the words from the text field? &lt;BR /&gt;&lt;/SPAN&gt;ex: &lt;BR /&gt;Row 01: 299999;Pippo;45.89;Pluto;Sas&lt;BR /&gt;Row 02: 7777;George;4567.2;David;Enterprise&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 May 2019 08:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556699#M9879</guid>
      <dc:creator>daniele_1306</dc:creator>
      <dc:date>2019-05-07T08:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract words delimited by a text field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556701#M9880</link>
      <description>May we know if you want words in separate columns/variables or in a single variable</description>
      <pubDate>Tue, 07 May 2019 09:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556701#M9880</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-07T09:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extract words delimited by a text field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556703#M9881</link>
      <description>&lt;P&gt;Do something like this and extract the values you consider a 'word'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length string $100;
string="299999;Pippo;45.89;Pluto;Sas";output;
string="7777;George;4567.2;David;Enterprise";output;
run;

data want;
   set have;
   do i=1 to countw(string, ';');
      word=scan(string, i, ';');
      output;
   end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 May 2019 09:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extract-words-delimited-by-a-text-field/m-p/556703#M9881</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-07T09:24:37Z</dc:date>
    </item>
  </channel>
</rss>

