View previous topic :: View next topic |
Author |
Message |
thomas Beginner
Joined: 10 Mar 2006 Posts: 3 Topics: 2
|
Posted: Fri Mar 10, 2006 4:24 am Post subject: How to Run SQL in Batch |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
thomas Beginner
Joined: 10 Mar 2006 Posts: 3 Topics: 2
|
Posted: Fri Mar 10, 2006 7:27 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|