<?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: Is there an ORACLE/SQL equivalent to the SAS SCAN command? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231985#M42258</link>
    <description>&lt;P&gt;You could have a look at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.oracle.com/cd/B12037_01/server.101/b10759/functions116.htm" target="_blank"&gt;https://docs.oracle.com/cd/B12037_01/server.101/b10759/functions116.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The regexp_substr() function seems to be a good fit.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 13:20:45 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-10-28T13:20:45Z</dc:date>
    <item>
      <title>Is there an ORACLE/SQL equivalent to the SAS SCAN command?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231976#M42256</link>
      <description>&lt;P&gt;I am using SAS PROC SQL to extract data from an ORACLE data base. I believe that I need to find an ORACLE equivalent to the SAS SCAN command, since the SAS SCAN command doesn't work in the part of the code which is transferred to and executed in the ORACLE database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if the variable named ID has a value of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;abc_de_fghijk&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then in a SAS data step the command str=scan(id,2,'_'); will extract the text string 'de' from ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an equivalent command that I can use in ORACLE? THanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 12:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231976#M42256</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-28T12:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ORACLE/SQL equivalent to the SAS SCAN command?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231979#M42257</link>
      <description>&lt;P&gt;I haven't tried it, but looks like you may need to combine INSTR()&amp;nbsp; or CHARINDEX() to look up the position of the&amp;nbsp;ith underscore, with SUBSTRING().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231979#M42257</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-10-28T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ORACLE/SQL equivalent to the SAS SCAN command?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231985#M42258</link>
      <description>&lt;P&gt;You could have a look at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.oracle.com/cd/B12037_01/server.101/b10759/functions116.htm" target="_blank"&gt;https://docs.oracle.com/cd/B12037_01/server.101/b10759/functions116.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The regexp_substr() function seems to be a good fit.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-an-ORACLE-SQL-equivalent-to-the-SAS-SCAN-command/m-p/231985#M42258</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-28T13:20:45Z</dc:date>
    </item>
  </channel>
</rss>

