<?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 move specific word to new column in sas in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839861#M41551</link>
    <description>&lt;P&gt;Use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p16rdsa30vmm43n1ej4936nwa01t.htm" target="_blank" rel="noopener"&gt;FINDW Function&lt;/A&gt;&amp;nbsp;with the "e" modifier to see if the KEL or KEC is present, then extract the following word with&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0jshdjy2z9zdzn1h7k90u99lyq6.htm" target="_blank" rel="noopener"&gt;SCAN&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 07:31:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-10-21T07:31:57Z</dc:date>
    <item>
      <title>How to move specific word to new column in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839848#M41548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm new in sas, I need help how to move specific word to new column in sas, with the data below :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;address :&lt;/P&gt;&lt;P&gt;TEGALASEM RT 005 RW 003 KEL SUMBERGONDO KEC BUMIAJI&lt;/P&gt;&lt;P&gt;CEMARA BARU III F 512 RT 009 RW 017 KEL JATIMULYA KEC TAMBUN SELATAN&lt;/P&gt;&lt;P&gt;JL LIGAR TIMUR 1 NO 1 RT 01/13 KEL CIBEUNYING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result :&lt;/P&gt;&lt;P&gt;KEL :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; KEC : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;SUMBERGONDO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BUMIAJI&lt;/P&gt;&lt;P&gt;JATIMULYA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TAMBUN SELATAN&lt;/P&gt;&lt;P&gt;CIBEUNYING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 06:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839848#M41548</guid>
      <dc:creator>jati</dc:creator>
      <dc:date>2022-10-21T06:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to move specific word to new column in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839852#M41549</link>
      <description>&lt;P&gt;What is the logic here?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 06:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839852#M41549</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-10-21T06:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to move specific word to new column in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839860#M41550</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if "KEL" in the address then move to the KEL column&lt;/P&gt;&lt;P&gt;if the "KEC" in the address then move to the KEL column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;no&lt;/TD&gt;&lt;TD&gt;address&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;TEGALASEM RT 005 RW 003 KEL SUMBERGONDO KEC BUMIAJI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;CEMARA BARU III F 512 RT 009 RW 017 KEL JATIMULYA KEC TAMBUN SELATAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;JL LIGAR TIMUR 1 NO 1 RT 01/13 KEL CIBEUNYING&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;TD&gt;KEL&lt;/TD&gt;&lt;TD&gt;KEC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;SUMBERGONDO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;BUMIAJI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;JATIMULYA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;TAMBUN SELATAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;CIBEUNYING&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839860#M41550</guid>
      <dc:creator>jati</dc:creator>
      <dc:date>2022-10-21T07:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to move specific word to new column in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839861#M41551</link>
      <description>&lt;P&gt;Use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p16rdsa30vmm43n1ej4936nwa01t.htm" target="_blank" rel="noopener"&gt;FINDW Function&lt;/A&gt;&amp;nbsp;with the "e" modifier to see if the KEL or KEC is present, then extract the following word with&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0jshdjy2z9zdzn1h7k90u99lyq6.htm" target="_blank" rel="noopener"&gt;SCAN&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839861#M41551</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-21T07:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to move specific word to new column in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839902#M41552</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input have $80.;
cards;
TEGALASEM RT 005 RW 003 KEL SUMBERGONDO KEC BUMIAJI
CEMARA BARU III F 512 RT 009 RW 017 KEL JATIMULYA KEC TAMBUN SELATAN
JL LIGAR TIMUR 1 NO 1 RT 01/13 KEL CIBEUNYING
;
data want;
 set have;
 pid=prxparse('/(KEL\s+\w+\s+)(KEC[\w\s]+)?/i');
 if prxmatch(pid,have) then do;
   kel=left(substr(prxposn(pid,1,have),4));
   kec=left(substr(prxposn(pid,2,have),4));
 end;
drop pid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2022 11:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/839902#M41552</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-21T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to move specific word to new column in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/840440#M41562</link>
      <description>thank you its working</description>
      <pubDate>Tue, 25 Oct 2022 06:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-specific-word-to-new-column-in-sas/m-p/840440#M41562</guid>
      <dc:creator>jati</dc:creator>
      <dc:date>2022-10-25T06:27:39Z</dc:date>
    </item>
  </channel>
</rss>

