Dynamic Sql

I am creating a cursor using dynamic SQL. I can fetch the data with no problem, but whenever I tried to execute another SQL Statement (Dynamic Cursor still open) I get an error message stating "Connection is busy with the results for another hstmt". Any ideas on what may be causing this error? We have other programs where we have open cursors (static SQL) and have no problem performing other SQL statements.