<?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: WARNING when using EXECUTE() to run Redshift COPY command in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460888#M14312</link>
    <description>&lt;P&gt;Maybe&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql nowarn;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;would work?&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 23:10:41 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-05-08T23:10:41Z</dc:date>
    <item>
      <title>WARNING when using EXECUTE() to run Redshift COPY command</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460848#M14311</link>
      <description>&lt;P&gt;Does anyone know how to stop PROC SQL from writing WARNING: line into SAS log when remote database sends back INFO message when using EXECUTE() statement in PROC SQL to push commands into the database?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was using SAS/Access to ODBC with a Redshift database and issuing COPY command to load into a table from files on S3 bucket. The command runs fine, but I get a WARNING in the SAS log.&lt;/P&gt;
&lt;PRE&gt;WARNING: During execute: INFO:  Load into table 'bucket_test' completed, 19 record(s) loaded
         successfully.&lt;/PRE&gt;
&lt;P&gt;Is there some SAS option, PROC SQL option or ODBC connection option that will make PROC SQL not describe that note as a WARNING?&amp;nbsp; Or perhaps some Redshift option that could stop it from sending the status message back?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint ;
  connect to odbc .....;
  execute(
    copy &amp;amp;schema..&amp;amp;table
    from %squote(s3://&amp;amp;bucket/sas_upload&amp;amp;path/&amp;amp;fname)
    access_key_id &amp;amp;keyid  secret_access_key &amp;amp;secret
    delimiter '|'  gzip  csv
    blanksasnull  emptyasnull
    dateformat 'auto'  timeformat 'auto'
  ) by odbc;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460848#M14311</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-05-08T20:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING when using EXECUTE() to run Redshift COPY command</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460888#M14312</link>
      <description>&lt;P&gt;Maybe&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql nowarn;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;would work?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 23:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460888#M14312</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-05-08T23:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING when using EXECUTE() to run Redshift COPY command</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460898#M14313</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Maybe&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql nowarn;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;would work?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Good idea, but unfortunately it does not help.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 01:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460898#M14313</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-05-09T01:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING when using EXECUTE() to run Redshift COPY command</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460903#M14314</link>
      <description>&lt;P&gt;Maybe a setting in the ODBC driver to not pass back messages then?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the message is useful, not a warning, and SAS misinterprets it.&lt;/P&gt;
&lt;P&gt;So it looks like it's time to raise a defect with tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a workaround for clean log, a quick &lt;FONT face="courier new,courier"&gt;proc printto&lt;/FONT&gt; may be necessary until the defect is fixed.&lt;/P&gt;
&lt;P&gt;You can even read the&amp;nbsp;log file right away and output the useful information back to the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 02:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-when-using-EXECUTE-to-run-Redshift-COPY-command/m-p/460903#M14314</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-05-09T02:50:57Z</dc:date>
    </item>
  </channel>
</rss>

