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 

ABEND S322

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


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Tue Jul 29, 2008 2:30 pm    Post subject: ABEND S322 Reply with quote

Hi all,

Herein I am facing a problem while unloading the data from Production.
I am trying to unload the data quering on 2 tables using the below query in DSNTIAUL utility. Table1 is having around 98726051 rows and Table2 is having 43535826. I used the parameter TIME=1410 also in the job statement. But still I am unable to unload the job, even after 3 hrs.
Could anyone pls help me in this regard.

Thanks in advance.

SELECT *
FROM
table1
WHERE RDNDTE IN
(SELECT RDNDTE
FROM
table2
WHERE DATE(RDNDTE) >= CURRENT DATE - 5 YEARS);
_________________
Satya
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Wed Jul 30, 2008 3:08 am    Post subject: Reply with quote

Hello Satya,

performance questions in DB2 always have multiple sides. First, you should give DB2 the choice about the access path to your data by coding
SELECT T1.*
FROM table1 T1, table2 T2
WHERE T1.RDNDTE = T2.RDNDTE
AND DATE(T2.RDNTE) >= ....
;

Facing the number of rows you have to deal with, there are of course many other factors relevant:
- size of your bufferpool
- concurrent traffic in your bufferpool
- I assume, the tables aren't sorted in RDNDTE order
- If you can afford it, eliminate DB2 locking using WITH UR at the end of your Select
- ....

good luck
Christian
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Jul 30, 2008 4:39 am    Post subject: Reply with quote

satyenderd,

Kolusu had given soultion in the below link.

http://www.mvsforums.com/helpboards/viewtopic.php?t=10022
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jul 30, 2008 7:59 am    Post subject: Reply with quote

Satya,

Be aware that TIME=1410 allows you nearly 24 hours of CPU time, so your parameter is probably being changed by some system setting. Either a JES2 JOBCLASS default or system exit.

Regardless, you need to make your query as efficient as possible.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Jul 30, 2008 8:28 am    Post subject: Reply with quote

You can also try running the job by removing TIME parameter.
Back to top
View user's profile Send private message Send e-mail
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Wed Jul 30, 2008 10:44 am    Post subject: Reply with quote

Million thanks to all of you.

I will try with the query provided by Kolusu and CZerfas.

Good day to all of you.
_________________
Satya
Back to top
View user's profile Send private message
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