Receiving these errors:
*******A046 SQL - ALL INTERNAL CURSORS HAVE BEEN USED, MAXCUR VALUE EXCEEDED IN DQSMCMD
*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)
Where is the documentation for MAXCUR and HLDCUR parameters, and where are the current values found for these parameters?
CA Easytrieve Report Generator, release 11.6
CA Pan/SQL 2.4C (0203)
Please look in your DQSMCMD macro in your CA Pan/SQL CAIMAC.
These are the default values:
Please look in your CAIMAC in the DQSMCMD member to see what is specified for MAXCUR and HELDCUR.
The above values in DQSMCMD can be overridden in the OMSMCMD2 macro, so check for these two values in OMSMCMD2 first:
DQSMCMD MAXSTMT=05, X
Please see this documentation link:
This value specifies the maximum number of cursors defined
with the With Hold option that will be defined for the execution
of a given task, transaction, or program. This parameter is valid
only for DB2 for z/OS or OS/390 Release 2.3 or greater.
This value specifies the maximum number of cursors that will be
defined for the execution of any user task, transaction, or
program. This parameter affects only the dynamic execution of
the programs. If too small of a value is specified, programs may
fail execution, and a warning message is reported at the end of
compile phase processing. The user must then specify a larger
value for this option and reinstall the interface.
A value between 1 and 99 is valid. The default value is 6. This
means that no user program can use more than 6 cursors for
execution. The value that is specified affects the size of the
CA-Pan/SQL Interface Command Processor, its plan, and each