I have seen this message before. I believe you have a RPG program with Embedded SQL which is Defined as ACTIVATION GROUP *NEW. Also you CLOSE Cursor is probably *ENDMOD. You are repeatedly calling it over and over. Recompile as ACTIVATION GROUP *CALLER and CLOSE CURSOR *ENDACTGRP. Note: if the behavior of your SQL is in Error after this change the SQL operations in your program may not be in the correct order or missing some statements. Note: A SQL Statement only needs to be PREPARED once. It can be re-used many times.

Reply With Quote