Re: First Post db2 i5/OS case statement -
07-06-2009
, 08:25 AM
Cheers Mark, I got it going like this for anyone else who needs it,
*DECLARE C1 CURSOR FOR*
**select * from table**
*DECLARE C2 CURSOR FOR*
**select * from table**
*if (variable)*
*open C1;*
*else*
*open C2;*
*end if;*
Thanks
Michael |