<?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 Explicit SQL pass through in SAS Viya 4 on AWS in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936900#M2485</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;We are having SAS Viya 4 (Release 2023.10) running on AWS.&lt;BR /&gt;I have executed the following code in SAS Studio. I see that a table is created but no data is pulled.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;79   
80   proc sql;
81   connect to ODBC as AWS(dsn='smDSN' user='username' password=xxx );
82   create table test as
83   select *
84     from connection to AWS(
85   select *
86         from dbTest.TableA
87        where myVar = '1-Jan-24')
88   ;
NOTE: Table WORK.TEST created, with 0 rows and 254 columns.
89   disconnect from AWS;
90   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           2.50 seconds
      cpu time            0.07 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Running the same code on SAS 9.4 pulls&amp;nbsp; &amp;nbsp;more than a million rows.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Table WORK.TEST created, with 1731330 rows and 254 columns.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Wondering if there is a different way of doing this in Viya 4 ?&lt;BR /&gt;Requesting guidance from the community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 01:46:03 GMT</pubDate>
    <dc:creator>thesasuser</dc:creator>
    <dc:date>2024-07-24T01:46:03Z</dc:date>
    <item>
      <title>Explicit SQL pass through in SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936900#M2485</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;We are having SAS Viya 4 (Release 2023.10) running on AWS.&lt;BR /&gt;I have executed the following code in SAS Studio. I see that a table is created but no data is pulled.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;79   
80   proc sql;
81   connect to ODBC as AWS(dsn='smDSN' user='username' password=xxx );
82   create table test as
83   select *
84     from connection to AWS(
85   select *
86         from dbTest.TableA
87        where myVar = '1-Jan-24')
88   ;
NOTE: Table WORK.TEST created, with 0 rows and 254 columns.
89   disconnect from AWS;
90   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           2.50 seconds
      cpu time            0.07 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Running the same code on SAS 9.4 pulls&amp;nbsp; &amp;nbsp;more than a million rows.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Table WORK.TEST created, with 1731330 rows and 254 columns.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Wondering if there is a different way of doing this in Viya 4 ?&lt;BR /&gt;Requesting guidance from the community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 01:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936900#M2485</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2024-07-24T01:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Explicit SQL pass through in SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936908#M2486</link>
      <description>&lt;P&gt;I suggest you check the contents of myVar like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to ODBC as AWS(dsn='smDSN' user='username' password=xxx );
create table test as
select *
from connection to AWS(
select  myVar
       ,count(*) as Row_Count
from dbTest.TableA
group by myVar
);
disconnect from AWS;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jul 2024 02:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936908#M2486</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-07-24T02:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Explicit SQL pass through in SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936909#M2487</link>
      <description>&lt;PRE class="language-sas"&gt;&lt;CODE&gt;where myVar = '1-Jan-24'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is a very very strange string to search for.&amp;nbsp; Is that supposed to be a DATE?&amp;nbsp; Are you sure MYVAR is a character variable? Are you sure the variable doesn't actually have '01-JAN-2024' or '1-JAN-24' or any of the dozens of other ways to represent the first day of the year 2024 as a character string?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 02:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Explicit-SQL-pass-through-in-SAS-Viya-4-on-AWS/m-p/936909#M2487</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-24T02:47:34Z</dc:date>
    </item>
  </channel>
</rss>

