The sql statements are similar in the sense that the selected columns and some of the critierias are the same.
if different cursors...
cursor1 -> valid only if hostvar=x
select a,b,c
from taba
where d >= :varmin
and d <= :varmax
and ....(common conditions)
cursor2 -> valid only if hostvar=y
select a,b,c
from taba
where e >= :varmin
and e <= :varmax
and ....(common conditions)
cursor3 -> valid only if hostvar=z
select a,b,c
from taba
where f >= :varmin
and f <= :varmax
and ....(common conditions)
Since the selected columns and program logic for openning and retrieving records are the same, I thought I could minimize coding by using only 1 set of open/fetch/close.