<?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: Getting an error while calling DB2 program from proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791814#M81463</link>
    <description>&lt;P&gt;Thanks TOM ,&lt;/P&gt;
&lt;P&gt;works with execute By .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 11:08:01 GMT</pubDate>
    <dc:creator>learn_SAS_23</dc:creator>
    <dc:date>2022-01-24T11:08:01Z</dc:date>
    <item>
      <title>Getting an error while calling DB2 program from proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791209#M81453</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello Team ,&lt;/P&gt;
&lt;P&gt;am a new user and trying to execute below sample DB2 program from SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc sql;
   connect to DB2
         ( 
             READ_ISOLATION_LEVEL=UR DATAsrc=Test AUTHDOMAIN="Test schema" 
         ); 
 %let  out_sql_code =0;
%let  out_sql_state =0;
  create table sasresults as select * from connection to db2
   (call "temp".Test_DB2program_test (0,:out_sql_code,:out_sql_state));
   disconnect from db2 ;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;even if , am passing correct parameters while calling DB2 procedure , am still&amp;nbsp;&amp;nbsp;getting below error&lt;/P&gt;
&lt;P&gt;error: cli execute error: [ibm][cli driver] cli0100e wrong number of parameters. sqlstate=07001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one help how to fix this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791209#M81453</guid>
      <dc:creator>learn_SAS_23</dc:creator>
      <dc:date>2022-01-24T11:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error while calling DB2 program from proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791219#M81454</link>
      <description>&lt;P&gt;If you are running using FROM CONNECTION TO ... ( ) then the stuff in () has to return a TABLE.&lt;/P&gt;
&lt;P&gt;If it doesn't then use EXECUTE BY ... () instead to run the stuff in ().&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 18:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791219#M81454</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-20T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error while calling DB2 program from proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791814#M81463</link>
      <description>&lt;P&gt;Thanks TOM ,&lt;/P&gt;
&lt;P&gt;works with execute By .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-an-error-while-calling-DB2-program-from-proc-sql/m-p/791814#M81463</guid>
      <dc:creator>learn_SAS_23</dc:creator>
      <dc:date>2022-01-24T11:08:01Z</dc:date>
    </item>
  </channel>
</rss>

