in a COBOL DB2 program I have opened the cursor and after processing few more lines of code, the cursor got closed. What might be the possible reasons and what should we do to avoid it? IN a dept table , i want to display the Sum of all the employee salaries department wise. How c...