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 

How to Run SQL in Batch

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


Joined: 10 Mar 2006
Posts: 3
Topics: 2

PostPosted: Fri Mar 10, 2006 4:24 am    Post subject: How to Run SQL in Batch Reply with quote

Hi ,

I have data set TMC001.CUST.DATA , which having around 5000 custno . How to run the SELECT SQL in Batch using this dataset as 'in set'

ie select * from customer where custno in ()


Thanks
Thomas
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Mar 10, 2006 5:26 am    Post subject: Reply with quote

thomas,

Please search before posting. This topic has been discussed earlier. Check these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=640&highlight=unload

http://www.mvsforums.com/helpboards/viewtopic.php?t=3928&highlight=unload

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
thomas
Beginner


Joined: 10 Mar 2006
Posts: 3
Topics: 2

PostPosted: Fri Mar 10, 2006 7:27 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for your response ..

I want to execute a UPDATE Statement using DSNTEP2 and my search condition is in dataset TMC001.CUST.DATA , which having around 5000 record .

Just have look at my UPDATE statement in SYSIN CONTROL CARD

UPDATE AIS00.CUSTOMER SET MVALUE='Y' WHERE CUSTNO IN ( )

My problem is all the CUSTNO values for the search condition are stored in a dataset . Currently we are running a programe for updating this table .

Is there any way i can access these dataset in my UPDATE query in my batch programe

Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Mar 10, 2006 8:24 am    Post subject: Reply with quote

thomas,

Check these links which discuss about generating the update sqlcards and then running in batch mode.

http://www.mvsforums.com/helpboards/viewtopic.php?t=3369&highlight=sqlcards

http://www.mvsforums.com/helpboards/viewtopic.php?t=2787&highlight=sqlcards

Hope this helps...

Cheers

Kolusu
_________________
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 -> 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