IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2-Query execution thru a batch job


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Asokrani

New User


Joined: 08 Jun 2007
Posts: 18
Location: Connecticut

PostPosted: Wed Jul 11, 2007 12:36 am
Reply with quote

Hi ,

I would like to know how to submit a QMF batch job to get the execute the query ...Because when i submit a query in foreground its taking longer time and the estimation is going beyond 3000.


Thanks
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Wed Jul 11, 2007 3:26 am
Reply with quote

DB2 batch queries can run like this. DB2SS needs to be changed to subsystem you want to query.

Code:

//     JOBCARD
//*
//JS02 EXEC DSNTEP2,DB2=DB2SS,COND=(4,LT)     
//DYNSQL.SYSPRINT DD SYSOUT=*                 
//SYSIN    DD *                               
   SELECT *                                     
   FROM OWNER.TABLE
   WHERE  Conditions
/*                                           
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts How to close Datacom MUF URT used by ... CICS 0
No new posts Activate WLM policy in batch All Other Mainframe Topics 2
No new posts SAS Step execution statistics All Other Mainframe Topics 0
Search our Forums:


Back to Top