Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to run the same job in parallel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
Jain Abhinav

New User


Joined: 20 Dec 2007
Posts: 3
Location: India

PostPosted: Wed Jul 02, 2008 11:53 am    Post subject: How to run the same job in parallel
Reply with quote

Hi,

Please help me with the following situation.

I have a table which has 28 million records. There is a job which updates this table on a monthly basis. The problem is that the job runs for more than 12hrs. I need to optimise the run time for the jobs.

The scope of optimising the Db2 queries is minimal as confirmed by DBAs. I am thinking that if I can run the same job in parallel (may be 4 instances) and each instance updates around 7 million records. Thus instead of table lock, if I can have page locks on DB2 tables.

Has anybody done this in past.

TIA.

Abhinav Jain.
Back to top
View user's profile Send private message
References
ascelepius

New User


Joined: 16 Jun 2008
Posts: 35
Location: bangalore

PostPosted: Wed Jul 02, 2008 12:35 pm    Post subject: Reply to: How to run the same job in parallel
Reply with quote

Actually what matters here is if you have this data(28 mill records) in a partitioned table. Thus you can ensure that your batch programs run for pre-defined partitions on a monthly basis.

regards,
asci(i)
Back to top
View user's profile Send private message
ksk

Senior Member


Joined: 08 Jun 2006
Posts: 315
Location: Pune, India

PostPosted: Wed Jul 02, 2008 4:47 pm    Post subject:
Reply with quote

You can partition the table and prepare 4 JObs. These 4 jobs have to be scheduled so that all will run same time and takes less time.
Back to top
View user's profile Send private message
Rajkumar_n

New User


Joined: 07 Dec 2006
Posts: 35
Location: Bloomington

PostPosted: Wed Jul 02, 2008 8:36 pm    Post subject: How to run the same job in parallel
Reply with quote

It may be silly but I would like to know how we can run the same jobs at a time. At least the job names should be different even having the same functionality.
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 186
Location: Pune

PostPosted: Thu Jul 03, 2008 12:15 pm    Post subject:
Reply with quote

Also the jobs should be different as you are going to use four different input files.
Back to top
View user's profile Send private message
ksk

Senior Member


Joined: 08 Jun 2006
Posts: 315
Location: Pune, India

PostPosted: Thu Jul 03, 2008 2:13 pm    Post subject:
Reply with quote

I have also faced the same situation and done as below.

We had more than 20 million records and divided it into 21 parts. Written a Procedure and written 21 JCLs for 21 different input files. This same procedure was called from each JCL by overriding input files accordingly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1