dbTalk Databases Forums  

First Post db2 i5/OS case statement

ibm.software.db2.os400 ibm.software.db2.os400


Discuss First Post db2 i5/OS case statement in the ibm.software.db2.os400 forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
mmontgomery@dunbia.com
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.