<?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: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453290#M284015</link>
    <description>&lt;P&gt;An alternative (I haven't test yet) would be to pass the ODBC pass-thru not in query but in subquery.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 16:57:31 GMT</pubDate>
    <dc:creator>MikeAAC</dc:creator>
    <dc:date>2018-04-11T16:57:31Z</dc:date>
    <item>
      <title>SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453240#M284010</link>
      <description>&lt;P&gt;How can I can query a view in my odbc by selecting only Accounts ID that are store in a SAS table in Work lib. Running code below, I got an error message but not if in a where clause i specified a value like where Id ='e01'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;CONNECT TO odbc as mydb (datasrc="..." authdomain=_auth);&lt;BR /&gt;CREATE TABLE Id_from_odbc_vw&amp;nbsp;AS&lt;BR /&gt;select * from connection to mydb&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select Id,&amp;nbsp;Name,&amp;nbsp;DOB&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from input_vw&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Id in (&lt;EM&gt;&lt;STRONG&gt;select&amp;nbsp; AccountId from sas_tbl_wk_lib&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DISCONNECT FROM mydb;&lt;BR /&gt;QUIT;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453240#M284010</guid>
      <dc:creator>MikeAAC</dc:creator>
      <dc:date>2018-04-11T14:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453245#M284011</link>
      <description>&lt;P&gt;As much as I know you have to do it in 2 steps:&lt;/P&gt;
&lt;P&gt;1) select relevant data from the odbc database into sas.&lt;/P&gt;
&lt;P&gt;2) reselect relevant observartion matching the other table.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453245#M284011</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-11T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453252#M284012</link>
      <description>&lt;P&gt;Thanks Shemuel but all the relevant ID are in a sas table. Obviously, it is not efficient to pull all the ODBC into a SAS table. I just need a pass thru query that pull from ODBC, the same ID I have in my SAS table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453252#M284012</guid>
      <dc:creator>MikeAAC</dc:creator>
      <dc:date>2018-04-11T14:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453261#M284013</link>
      <description>&lt;P&gt;If you want to select small amount of records you can (memory dependent) you can:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) select record_id (s) into a macro variable (record_ids_list) separated by comma&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
CONNECT TO odbc as mydb (datasrc="..." authdomain=_auth);
CREATE TABLE Id_from_odbc_vw AS
select * from connection to mydb
      (
          select Id, Name, DOB
          from input_vw

         where  Id in (&amp;amp;record_ids_list)

      );

DISCONNECT FROM mydb;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;otherwise, maybe someone else knows a better method.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453261#M284013</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-11T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453288#M284014</link>
      <description>&lt;P&gt;I want basically to select almost 10 Mio ids. puttng them in a macro list does not seem to be the way but thanks for trying to help. Maybe Chris Hemedinger can find another way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453288#M284014</guid>
      <dc:creator>MikeAAC</dc:creator>
      <dc:date>2018-04-11T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453290#M284015</link>
      <description>&lt;P&gt;An alternative (I haven't test yet) would be to pass the ODBC pass-thru not in query but in subquery.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453290#M284015</guid>
      <dc:creator>MikeAAC</dc:creator>
      <dc:date>2018-04-11T16:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453294#M284016</link>
      <description>&lt;P&gt;Bad Alternative as I won't to keep most of the vars in the table in ODBC&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453294#M284016</guid>
      <dc:creator>MikeAAC</dc:creator>
      <dc:date>2018-04-11T17:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ACCESS: Universal SAS Methods to Access Just About Any Data, Anywhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453435#M284017</link>
      <description>Thw last couple of monrhe the forum has been cluttered with similar question. By doing a search first you could save yourself and others time.&lt;BR /&gt;That said, pass through can never talk to local SAS data. &lt;BR /&gt;Either upload the required data first.&lt;BR /&gt;Or join via a libname connection, and use DBKEY= to optimize the query.</description>
      <pubDate>Thu, 12 Apr 2018 03:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Universal-SAS-Methods-to-Access-Just-About-Any-Data/m-p/453435#M284017</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-04-12T03:02:25Z</dc:date>
    </item>
  </channel>
</rss>

