<?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 Need to extract a char between special char from a string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275006#M54941</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract&amp;nbsp;the list of SAS program names from a dataset, i have hundreds of them and the special chars are present at&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/xxxx/abcde/abcdefgh.sas&lt;/P&gt;&lt;P&gt;/xxxx/abcde/lkml/abcdefguh.sas&lt;/P&gt;&lt;P&gt;/xxxx/abcde/lkml555/abguh.sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the output as&lt;/P&gt;&lt;P&gt;abcdefgh.sas&lt;/P&gt;&lt;P&gt;abcdefguh.sas&lt;/P&gt;&lt;P&gt;abguh.sas&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, 03 Jun 2016 16:03:56 GMT</pubDate>
    <dc:creator>santosh_pat69</dc:creator>
    <dc:date>2016-06-03T16:03:56Z</dc:date>
    <item>
      <title>Need to extract a char between special char from a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275006#M54941</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract&amp;nbsp;the list of SAS program names from a dataset, i have hundreds of them and the special chars are present at&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/xxxx/abcde/abcdefgh.sas&lt;/P&gt;&lt;P&gt;/xxxx/abcde/lkml/abcdefguh.sas&lt;/P&gt;&lt;P&gt;/xxxx/abcde/lkml555/abguh.sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the output as&lt;/P&gt;&lt;P&gt;abcdefgh.sas&lt;/P&gt;&lt;P&gt;abcdefguh.sas&lt;/P&gt;&lt;P&gt;abguh.sas&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, 03 Jun 2016 16:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275006#M54941</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-06-03T16:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract a char between special char from a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275026#M54947</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SCAN function can help you with that, see example below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile cards;
  input
    pgmname : $256.
  ;
  justPgm = scan(pgmname, -1, "/");
cards;
/xxxx/abcde/abcdefgh.sas
/xxxx/abcde/lkml/abcdefguh.sas&lt;BR /&gt;
/xxxx/abcde/lkml555/abguh.sas
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;check the doc for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275026#M54947</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-06-03T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract a char between special char from a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275062#M54957</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;I was not able to remember this.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 18:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-extract-a-char-between-special-char-from-a-string/m-p/275062#M54957</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-06-03T18:19:46Z</dc:date>
    </item>
  </channel>
</rss>

