<?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 Filtering URL addresses in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261071#M57579</link>
    <description>&lt;P&gt;I have a field in the dataset called webpage:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has values as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.abc.com/about" target="_blank"&gt;www.abc.com/about&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/about-afib" target="_blank"&gt;www.abc.com/about-afib&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/about/activations" target="_blank"&gt;www.abc.com/about/activations&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/home/" target="_blank"&gt;www.abc.com/home/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/mobile" target="_blank"&gt;www.abc.com/mobile&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mobileabc.com/xyz.php" target="_blank"&gt;www.mobileabc.com/xyz.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the following output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.abc.com/about" target="_blank"&gt;www.abc.com/about&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/home/" target="_blank"&gt;www.abc.com/home/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/mobile" target="_blank"&gt;www.abc.com/mobile&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2016 14:31:58 GMT</pubDate>
    <dc:creator>pp2014</dc:creator>
    <dc:date>2016-04-04T14:31:58Z</dc:date>
    <item>
      <title>Filtering URL addresses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261071#M57579</link>
      <description>&lt;P&gt;I have a field in the dataset called webpage:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has values as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.abc.com/about" target="_blank"&gt;www.abc.com/about&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/about-afib" target="_blank"&gt;www.abc.com/about-afib&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/about/activations" target="_blank"&gt;www.abc.com/about/activations&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/home/" target="_blank"&gt;www.abc.com/home/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/mobile" target="_blank"&gt;www.abc.com/mobile&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mobileabc.com/xyz.php" target="_blank"&gt;www.mobileabc.com/xyz.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the following output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.abc.com/about" target="_blank"&gt;www.abc.com/about&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/home/" target="_blank"&gt;www.abc.com/home/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.abc.com/mobile" target="_blank"&gt;www.abc.com/mobile&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261071#M57579</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2016-04-04T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261076#M57581</link>
      <description>&lt;P&gt;Not sure what the "question" is here or what the logic is. &amp;nbsp;There a many ways to do that: if _n_ in (1,4,5) then output;, or if scan(&amp;lt;text),2,"/") in ("about","home","mobile") then output; etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261076#M57581</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-04T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering URL addresses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261277#M57599</link>
      <description>&lt;PRE&gt;


data x;
input x $80.;
y=scan(x,1,'/')||'/'||scan(x,2,'.','kad');
if findc(scan(x,-1,'/'),'.') then call missing(y);
cards;
www.abc.com/about
www.abc.com/about-afib
www.abc.com/about/activations
www.abc.com/home/
www.abc.com/mobile
www.mobileabc.com/xyz.php
;
run;

&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 04:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Filtering-URL-addresses/m-p/261277#M57599</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-05T04:38:31Z</dc:date>
    </item>
  </channel>
</rss>

