BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
learn_SAS_23
Quartz | Level 8


Hello Team ,

am a new user and trying to execute below sample DB2 program from SAS

 

 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;

even if , am passing correct parameters while calling DB2 procedure , am still  getting below error

error: cli execute error: [ibm][cli driver] cli0100e wrong number of parameters. sqlstate=07001

 

Can some one help how to fix this,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

If you are running using FROM CONNECTION TO ... ( ) then the stuff in () has to return a TABLE.

If it doesn't then use EXECUTE BY ... () instead to run the stuff in ().

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

If you are running using FROM CONNECTION TO ... ( ) then the stuff in () has to return a TABLE.

If it doesn't then use EXECUTE BY ... () instead to run the stuff in ().

learn_SAS_23
Quartz | Level 8

Thanks TOM ,

works with execute By .

 

sas-innovate-2024.png

 

Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 621 views
  • 2 likes
  • 2 in conversation