Actually what Nik22Dec said, is not true.
DECLARE CURSOR is not an executable statement. it is just a definition you give to the DB2 precompiler, much like DECLARE TABLE.
It is resolved during precompile / bind.
It's like asking to have two (77-level) variables in working storage with the same name (as Prino pointed out).
so you can NOT
IF A then perform para-A else perform para-B end-if.
OPEN cursor A
DECLARE CURSOR A .. FROM tableA
DECLARE CURSOR A .. FROM TableB
I can explain it to you, but i can not understand it for you.