Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Unload from table running long

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
aneeta

New User


Joined: 08 Dec 2005
Posts: 48
Location: Chennai

PostPosted: Sun Oct 19, 2008 6:06 am    Post subject: Unload from table running long
Reply with quote

Hi All,
One of my direct unload from table job is running for a long time.it joins 3 huge tables (300Million records in each table) and extracts the data based on conditions.

Query:
-----------
Select c.f1,x.f2,C.F3,P.F4,P.F5,..................

from cind c

left outer join cind1 x
on c.cind_id=x.cind1_id

left outer join cind2 p
on c.cind_id=p.add_id
and p.name='Primary'

where substr(C.name,1,1) between ' ' and 'A'

with ur;

The unload is done using DSNTIAUL with IKJEFT01.

This job is running for a long time and using excessive CPU and DB2 resource.Can you help me optimise the job?
I can change the job to any other improved utility suggested for unloading these 3 huge join tables.
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sun Oct 19, 2008 6:47 am    Post subject:
Reply with quote

"This job is running for a long time and using excessive CPU and DB2 resource."
This is a bit vague -- care to elaborate?
Back to top
View user's profile Send private message
aneeta

New User


Joined: 08 Dec 2005
Posts: 48
Location: Chennai

PostPosted: Sun Oct 19, 2008 11:25 am    Post subject: Reply to: Unload from table running long
Reply with quote

Yes..this job runs for 5-6hrs to complete.Moreover after running for 4 hours it abends with -904(resource unavailable) and when restarted completes successfully.This process then takes 10hrs to complete.

Thanks
Aneeta
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Oct 19, 2008 11:31 am    Post subject:
Reply with quote

Hello,

How long does it take to unload only the necessary colums from the 3 tables screening out anything that can be excluded immediately (i.e. p.name = "prinary", etc?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us