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 

Check Performance

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


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Fri Nov 18, 2005 10:59 am    Post subject: Check Performance Reply with quote

Hi,

I have changed a Cob program by removing the ORDER by clause in the SQL query.

Below are observations:-

Run time CPU time
Baseline 203.8 22.36
Changed 96.48 21.30
Improvement 52.65947007 0.268336315

Now as you see it... there is not much change in the CPU time taken. But there is significant
reduction in the Cycle time.

Now my question :-

Can i assume that the changed code is more efficient than the baseline code ( based on the
reduction in the cycle time)?

Note :- ORDER by clause was based on the INDEX only.
I Have replaced the oder by clause with SYCSORT step.

Snippet of the JESMSGLG:-

Baseline:-PROCSTEP RC EXCP CPU SRB CLOCK SERV
STEP0010 00 48340 22.36 .01 203.80 14478K

Changed :- PROCSTEP RC EXCP CPU SRB CLOCK SERV
STEP0010 00 48291 21.14 .01 83.17 13692K

Thanks,
Tattva
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Nov 18, 2005 3:28 pm    Post subject: Reply with quote

That depends. Did you include the Syncsort step in these calculations? If not, then you are simply saying that it takes less time to do less work.
Back to top
View user's profile Send private message Visit poster's website
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Fri Nov 18, 2005 4:11 pm    Post subject: Reply with quote

Yup..

I did take SYNCSORT step into the consideration.

Thanks,
Tattva
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Sat Nov 19, 2005 3:38 am    Post subject: Reply with quote

Tattva,

External sort (whatever the product be) always is faster than DB2 Order By. Using this technique always depends on the way the cobol program is written. If it does lots of processing before the fetch and after the fetch-order by then you need to see if the program can be divided into two. Also, you may have to consider any future changes which may force you to use DB2 Order By.

If everthing seems fine, then go ahead with your new logic.

Thanks,
Phantom
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 -> Problem Determination 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