DB2 Stored Procedure returning Multiple rows of a Cursor in C Program
===

I want to write a Stored Procedure in DB2 which will have a curosor for a table and then it will send the whole cursor rows to a C program?

Can anyone help me?