<?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: capture value within the parentheses using function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418629#M102861</link>
    <description>&lt;P&gt;if the pattern is exactly the same as your sample-&lt;/P&gt;&lt;P&gt;new_var=compress(scan(var_name, 1), '()');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2017 22:34:29 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2017-12-05T22:34:29Z</dc:date>
    <item>
      <title>capture value within the parentheses using function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418627#M102860</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have values that look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR_NAME&lt;/P&gt;
&lt;P&gt;(3) left hearing 12JAN2017&lt;/P&gt;
&lt;P&gt;(14) right hearing 30JAN2017&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing i need to capture from this value are the numbers within the parentheses.&amp;nbsp; Can someone help me use a scan or substr to&amp;nbsp;capture&amp;nbsp;this (or other function) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&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;
&lt;PRE class=" language-sas"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 22:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418627#M102860</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2017-12-05T22:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: capture value within the parentheses using function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418629#M102861</link>
      <description>&lt;P&gt;if the pattern is exactly the same as your sample-&lt;/P&gt;&lt;P&gt;new_var=compress(scan(var_name, 1), '()');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 22:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418629#M102861</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-05T22:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: capture value within the parentheses using function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418630#M102862</link>
      <description>&lt;P&gt;&lt;SPAN&gt;new_var=scan(var_name, 1, '()');&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 22:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/capture-value-within-the-parentheses-using-function/m-p/418630#M102862</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-05T22:37:33Z</dc:date>
    </item>
  </channel>
</rss>

