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 

Improve Performance
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Sun Feb 06, 2005 10:47 am    Post subject: Reply with quote

IDX-1 ----> Table 1

IDX-2 -----> Table 2

IDX-2 is fetched from an internal table and is a constant value.

the problem that i am facing now is ..

i'm loadng idx-1 table through a fetch from DB2. here whats happening is

am getting multiple rows for CUST-NUM( table 1).

so while doing a Binary search on the IDX-1 table, the results are not as expected... Now all i want to know is how do i tune my DB2 query

Hope have made my self clear .......


TIA
-----
Tattva
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sun Feb 06, 2005 7:51 pm    Post subject: Reply with quote

Hi Tattva,

It might be a good idea to provide the DECLARE CURSOR stmt.

If you could answer these ques, it might help in resolving your problem:

1) Is the CURSOR used for other purposes than using dia-num?

2) Is the CURSOR the "controling file" for your pgm?

3) Do the multiple rows for the same CUST-NUM contain different dia-num?

BTW, I assume that the CUST-NUMs for tbl 1 & 2 have different datanames. What are they?
_________________
Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
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 -> Application Programming All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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