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 

Passing values in where condition of db2 query

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kirank
Beginner


Joined: 21 Apr 2004
Posts: 61
Topics: 33
Location: hyderabad

PostPosted: Sat May 02, 2015 6:43 am    Post subject: Passing values in where condition of db2 query Reply with quote

Hi I've a file contains three fields like field1 field2 field3. This file contains multiple records. I want to delete rows from a db2 table if the values present in the table. I know the fields of the table . Example Delete from table where f1 = field1 and f2 = field2 and f3 = field3. This query should be executed thru JCL. Can anyone please help. Thank you
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Sun May 03, 2015 12:55 am    Post subject: Re: Passing values in where condition of db2 query Reply with quote

kirank wrote:
Hi I've a file contains three fields like field1 field2 field3. This file contains multiple records. I want to delete rows from a db2 table if the values present in the table. I know the fields of the table . Example Delete from table where f1 = field1 and f2 = field2 and f3 = field3. This query should be executed thru JCL. Can anyone please help. Thank you


Kirank,

You can generate SQL control cards reading an input file using DFSORT. However you should know that you can only 409 records as the maximum length of a sql that can be read is 32760. So what would you do if you had more than 409 records?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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