<?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 PROC SQL Execute Stored Procedure Warnings in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464950#M70531</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm executing a MS SQL Stored Procedure from SAS DI Studio like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL ;
  CONNECT TO odbc (&amp;amp;_OUTPUT1_connect.) ;
  EXECUTE (TheStoredProcedure) BY odbc ;
  DISCONNECT FROM odbc ;
QUIT ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However the Stored Procedure contains print messages like:&lt;/P&gt;&lt;P&gt;PRINT 'Rows inserted: ' + CAST(@rowsInsertedHD AS VARCHAR(100))&lt;/P&gt;&lt;P&gt;And those messages are come back as warnings in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to suppress those warnings, without altering the Stored Procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 06:07:21 GMT</pubDate>
    <dc:creator>ThierryHerrie</dc:creator>
    <dc:date>2018-05-25T06:07:21Z</dc:date>
    <item>
      <title>PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464950#M70531</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm executing a MS SQL Stored Procedure from SAS DI Studio like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL ;
  CONNECT TO odbc (&amp;amp;_OUTPUT1_connect.) ;
  EXECUTE (TheStoredProcedure) BY odbc ;
  DISCONNECT FROM odbc ;
QUIT ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However the Stored Procedure contains print messages like:&lt;/P&gt;&lt;P&gt;PRINT 'Rows inserted: ' + CAST(@rowsInsertedHD AS VARCHAR(100))&lt;/P&gt;&lt;P&gt;And those messages are come back as warnings in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to suppress those warnings, without altering the Stored Procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 06:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464950#M70531</guid>
      <dc:creator>ThierryHerrie</dc:creator>
      <dc:date>2018-05-25T06:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464966#M70532</link>
      <description>&lt;P&gt;What happens if you use: proc sql nowarn;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note to stored procedure developer: Any printed output should be optional and turned off by default - program design 101.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 07:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464966#M70532</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-25T07:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464967#M70533</link>
      <description>&lt;P&gt;Still getting warnings&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 07:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/464967#M70533</guid>
      <dc:creator>ThierryHerrie</dc:creator>
      <dc:date>2018-05-25T07:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/465228#M70545</link>
      <description>&lt;P&gt;What's the issue for you? The warnings triggering a non-zero return code on the job or something else?&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 22:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/465228#M70545</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-25T22:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466322#M70621</link>
      <description>Yes, that's basically it.&lt;BR /&gt;Also because I am surprised that it looks like SAS treats the print statement from SQL as warnings</description>
      <pubDate>Thu, 31 May 2018 05:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466322#M70621</guid>
      <dc:creator>ThierryHerrie</dc:creator>
      <dc:date>2018-05-31T05:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466341#M70623</link>
      <description>&lt;P&gt;What scheduler do you use? You might be able to tweak the batch script file to ignore warnings in this case. You could also open a track with SAS Tech Support to see if they have any other ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming here there is no possibility of getting the stored procedure changed as that would be the best option.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 07:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466341#M70623</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-31T07:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466361#M70624</link>
      <description>I've made a workarround by creating a SQL job that executes the SP. From SAS I execute the job. No warnings then and good enough for now.&lt;BR /&gt;&lt;BR /&gt;We can't modify the Stored Procedure indeed.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!</description>
      <pubDate>Thu, 31 May 2018 08:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466361#M70624</guid>
      <dc:creator>ThierryHerrie</dc:creator>
      <dc:date>2018-05-31T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466665#M70632</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/86347"&gt;@ThierryHerrie&lt;/a&gt;&amp;nbsp;- No problem! Please mark your solution as answered in that case.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 22:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/466665#M70632</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-05-31T22:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/498465#M72519</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I facing same issue while executing, Can you provide the answer you figured out for solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope that can help in resolving my issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ashna&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 16:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/498465#M72519</guid>
      <dc:creator>ashna</dc:creator>
      <dc:date>2018-09-24T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/498703#M72520</link>
      <description>&lt;P&gt;Hi Ashna,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a job in SQL Server, using SQL Server Management Studio. The job executes the SQL Stored Procedure.&lt;/P&gt;&lt;P&gt;From SAS I execute the SQL Server job. That way I don't get a warning in the SAS log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 11:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/498703#M72520</guid>
      <dc:creator>ThierryHerrie</dc:creator>
      <dc:date>2018-09-25T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/498729#M72521</link>
      <description>&lt;P&gt;Thanks ll try and check if that helps me out&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 13:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/498729#M72521</guid>
      <dc:creator>ashna</dc:creator>
      <dc:date>2018-09-25T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/595175#M76125</link>
      <description>&lt;P&gt;Hi Theirry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share sas code, where you are calling sql stored procedure from SAS EG. I'm facing same issue you faced earlier. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 19:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/595175#M76125</guid>
      <dc:creator>k75240</dc:creator>
      <dc:date>2019-10-09T19:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Execute Stored Procedure Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/595177#M76126</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5153"&gt;@k75240&lt;/a&gt;&amp;nbsp;- The code is in the first post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 19:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Execute-Stored-Procedure-Warnings/m-p/595177#M76126</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-09T19:23:10Z</dc:date>
    </item>
  </channel>
</rss>

