<?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: Reg:Extraction in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53264#M14712</link>
    <description>Using a DATA step to parse the SAS variable, you can use the FIND and SUBSTR functions to locate, extract and then assign the substring to another SAS variable.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you review the SAS Language Dictionary guide and the section on functions.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Functions and CALL Routines&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000245852.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000245852.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Processing a DATA Step: A Walkthrough&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Adding Information to a SAS Data Set&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001315210.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001315210.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
A Hands-On Introduction to SAS® DATA Step Programming&lt;BR /&gt;
Debbie Buck, D. B. &amp;amp; P. Associates, Houston,&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/134-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/134-30.pdf&lt;/A&gt;</description>
    <pubDate>Fri, 10 Jul 2009 13:04:07 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-07-10T13:04:07Z</dc:date>
    <item>
      <title>Reg:Extraction particular part from a observation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53263#M14711</link>
      <description>Name                string_final&lt;BR /&gt;
Micheljohn        Aaaaaaaaaa&lt;BR /&gt;
VTG123 vijay    AAA999 Aaaaa&lt;BR /&gt;
John WER456  Aaaa AAA999.&lt;BR /&gt;
&lt;BR /&gt;
In this above if the string_final is having the pattern AAA999 then that part should be moved to another variable.&lt;BR /&gt;
As there are many observations and i dont know where this pattern will come in the string_final.&lt;BR /&gt;
&lt;BR /&gt;
Name                string_final         output&lt;BR /&gt;
ABC999       Aaaaaaaaaa           ABC999&lt;BR /&gt;
VTG123 vijay    AAA999 Aaaaa   VTG123&lt;BR /&gt;
John WER456  Aaaa AAA999.     WER456</description>
      <pubDate>Fri, 10 Jul 2009 11:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53263#M14711</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-10T11:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Extraction</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53264#M14712</link>
      <description>Using a DATA step to parse the SAS variable, you can use the FIND and SUBSTR functions to locate, extract and then assign the substring to another SAS variable.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you review the SAS Language Dictionary guide and the section on functions.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Functions and CALL Routines&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000245852.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000245852.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Processing a DATA Step: A Walkthrough&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Adding Information to a SAS Data Set&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001315210.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001315210.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
A Hands-On Introduction to SAS® DATA Step Programming&lt;BR /&gt;
Debbie Buck, D. B. &amp;amp; P. Associates, Houston,&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/134-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/134-30.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 10 Jul 2009 13:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53264#M14712</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-10T13:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Extraction particular part from a observation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53265#M14713</link>
      <description>Identical issue of your previous posts.&lt;BR /&gt;
&lt;BR /&gt;
So, once again here's the answer:&lt;BR /&gt;
&lt;BR /&gt;
Check here for regular expression info:&lt;BR /&gt;
&lt;A href="http://www.regular-expressions.info/tutorial.html" target="_blank"&gt;http://www.regular-expressions.info/tutorial.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Check here for the regular expression functions online documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a002295977.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a002295977.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Tue, 14 Jul 2009 08:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Extraction-particular-part-from-a-observation/m-p/53265#M14713</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-14T08:10:17Z</dc:date>
    </item>
  </channel>
</rss>

