DSNH522I E csectname DESCRIBE CURSOR cursor-name IS INVALID BECAUSE THE CURSOR WAS DEFINED BY A DECLARE CURSOR STATEMENT.
Explanation
DESCRIBE CURSOR is allowed for cursors defined using the ALLOCATE CURSOR statement.
System action
The statement cannot be executed.
User response
Remove the DESCRIBE CURSOR statement. Issue a DESCRIBE of the statement used to define the declared cursor.
Severity
8 (error).