<?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: Quick SQL Question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125238#M10557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect LarryWorley hit the nail on the head, but just in case this should be worth a shot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where trim(a.prefix) = substr(b.dsn, 1, length(a.prefix))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 20:04:33 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2012-11-13T20:04:33Z</dc:date>
    <item>
      <title>Quick SQL Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125235#M10554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick question about how to code an SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a prefix value (a data set name) in one table, and a fully qualified name (including the member name and extension) in a second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to code a SQL to match these?&amp;nbsp; I thought to use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where a.prefix =: b.dsn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not concerned whether the fully qualified name contains multiple sub directories, as long as the prefix matches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 19:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125235#M10554</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2012-11-13T19:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Quick SQL Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125236#M10555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;STRONG&gt;like &lt;/STRONG&gt;operator with multi-character wild card "%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where b.dsn like trim(a.prefix)||'%'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 19:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125236#M10555</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-11-13T19:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Quick SQL Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125237#M10556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;colon operator is not working in Proc SQL, you probably need to use scan():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where a.prefix=scan(b.dsn,1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 19:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125237#M10556</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-11-13T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Quick SQL Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125238#M10557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect LarryWorley hit the nail on the head, but just in case this should be worth a shot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where trim(a.prefix) = substr(b.dsn, 1, length(a.prefix))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 20:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-SQL-Question/m-p/125238#M10557</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-11-13T20:04:33Z</dc:date>
    </item>
  </channel>
</rss>

