How to call stored procedure in DB2

I have used below lines to execute the stored procedure. But it didn't return any results. could you please help me regarding that.

proc sql;
   connect to db2;
   execute (call "DBAB.SP10");
gayathri grandheAsked:
Who is Participating?
Radek BaranowskiConnect With a Mentor Full-stack Java DeveloperCommented:
Are you sure your procedure is written to actually return any results to the outside caller ?

Make sure it contains RETURN statement.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.