title: pyodbc return multiple cursors from stored procedure with DB2
body: <p>I have a python program that calls a stored procedure from db2 database. I am using <code>results = cursor.fetchall()</code> to process the results of my stored procedure. However, my stored procedure returns two cursors. <code>results</code> only contains the first one. I need a way to loop through as many cursors as I want. I was hoping <code>fetchmany()</code> would be my answer but it is not. </p>
  
  <p>I need to be able to do multiple result sets as the program I am writing can only call one stored procedure. It would take a lot to go back and make it to be able to call two. Besides with one of these things I need to make 10 cursors return. Everything is dynamic, so the application doesn't know what procedure it is running, it just gets the data and spits it into excel not knowing the meaning. I need one cursor for the data, and the other cursors for different types of counts and totals.</p>
  
  <p>I am looking for a built in function to do this, or maybe even a different library because I have done my share of googling and it looks like pyodbc does not do this for DB2. DB2 is a requirement.</p>