<?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: keeping only content within the 2nd set of parentheses in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/keeping-only-content-within-the-2nd-set-of-parentheses/m-p/922060#M41357</link>
    <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;event = scan(visit, 4, "()");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;First word:&amp;nbsp; COMBINED VISIT&lt;/P&gt;
&lt;P&gt;Second word:&amp;nbsp; -334 &amp;amp; -324&lt;/P&gt;
&lt;P&gt;Third word:&amp;nbsp; blank between parentheses&lt;/P&gt;
&lt;P&gt;Fourth word:&amp;nbsp; 4010&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 23:16:15 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2024-03-27T23:16:15Z</dc:date>
    <item>
      <title>keeping only content within the 2nd set of parentheses</title>
      <link>https://communities.sas.com/t5/New-SAS-User/keeping-only-content-within-the-2nd-set-of-parentheses/m-p/922059#M41356</link>
      <description>&lt;P&gt;In the column "&lt;STRONG&gt;event&lt;/STRONG&gt;" My goal is to keep only &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;4010&lt;/STRONG&gt;&lt;/FONT&gt;, but column event&amp;nbsp; has &lt;STRONG&gt;COMBINED VISIT (-334 &amp;amp; -324) (4010)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code below returned only &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;VISIT&lt;/STRONG&gt;&lt;/FONT&gt;. But I am interested in &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;4010&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
Set have;
redundant=scan(event,1,' ');
event=scan(event,2,' ');
drop redundant ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 23:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/keeping-only-content-within-the-2nd-set-of-parentheses/m-p/922059#M41356</guid>
      <dc:creator>femiajumobi1</dc:creator>
      <dc:date>2024-03-27T23:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: keeping only content within the 2nd set of parentheses</title>
      <link>https://communities.sas.com/t5/New-SAS-User/keeping-only-content-within-the-2nd-set-of-parentheses/m-p/922060#M41357</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;event = scan(visit, 4, "()");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;First word:&amp;nbsp; COMBINED VISIT&lt;/P&gt;
&lt;P&gt;Second word:&amp;nbsp; -334 &amp;amp; -324&lt;/P&gt;
&lt;P&gt;Third word:&amp;nbsp; blank between parentheses&lt;/P&gt;
&lt;P&gt;Fourth word:&amp;nbsp; 4010&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 23:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/keeping-only-content-within-the-2nd-set-of-parentheses/m-p/922060#M41357</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-03-27T23:16:15Z</dc:date>
    </item>
  </channel>
</rss>

