MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic 'IN' clause

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
mfnerd
Beginner


Joined: 06 Jan 2003
Posts: 8
Topics: 6

PostPosted: Wed Jan 10, 2007 5:11 pm    Post subject: Dynamic 'IN' clause Reply with quote

Hi,
I'm trying to use a dynamic list in a 'IN' clause.

The only possibility i see is creating a TEMP table with all the values and use them in the IN clause.

Can't use Dynamic SQL.

Any tips appreciated !
_________________
Thanks,
Mfnerd.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jan 10, 2007 5:38 pm    Post subject: Reply with quote

might want to look at this link:

http://www.mvsforums.com/helpboards/viewtopic.php?t=7721

if the object of your IN clause is x type or date/time setting up working-storage 'table' is no problem, each entry length can easily be established. If you are dealing with numerics, that will be more fun because the size of each entry is determined by DB2.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group