IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

Combining two jobs into one will reduce CPU time?

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
View previous topic :: View next topic  
Author Message
bheemas



Joined: 19 Sep 2005
Posts: 6

Posted: Mon Oct 17, 2005 4:59 pm    Post subject: Combining two jobs into one will reduce CPU time?  

Hi,

I am bringing again this topic on to the board as some folks are positive in saving CPU time by consolidating the jobs in JCL. Please share your thoughts and advice me. Question goes like this..

In production, we have a scenario where one job solely for doing sort and the other job takes sortout as input and process it. These two jobs are running under two different jobnames (or in Procs).

If we combine these two jobs into one..will there be any savings in CPU time. I was under the assumption, by consolidating like this we can surely reduce CPU as the time taken for i-o operations will come down to some extent. I have tested these jobs separately and consolidated them again and validated. I got mixed results. there by I was not able to come to a conclusion.
I guess we may need to consider Elapsed Time, Active Time, Channel Time also into account when we are refering to CPU time. Please advice me.
_________________
Bheema Sekhar,
Software Engineer,
India
Back to top  
Rupesh.Kothari



Joined: 27 Apr 2005
Posts: 489

Posted: Mon Oct 17, 2005 6:22 pm    Post subject: Re: CPU time  

HI Bheema,

Offcource if you consolidate 2 jobs it will take less time if they are inter-related.

I did not get why you get mixed result. It may be some some other reason.

Regards

Rupesh
Back to top  
bheemas



Joined: 19 Sep 2005
Posts: 6

Posted: Tue Oct 18, 2005 2:45 pm    Post subject: Re: Combining two jobs into one will reduce CPU time?  

Hi Rupesh,
Thanks a lot for answering. Yes they are related. Sorted output will be given as input to next job. This is the only input the second job takes

But previsouly some one from this forum told we can't save any CPU time but only we can save time in manual submission.

I need to get expert solution asap. I am not able justfy with my test results as i have told you i am getting mixed results.

Regards,
bheemas
Back to top  
Rupesh.Kothari



Joined: 27 Apr 2005
Posts: 489

Posted: Tue Oct 18, 2005 3:06 pm    Post subject: Re: Combining two jobs into one will reduce CPU time?  

HI Bheemas,

As you mentioned that two jobs are related then it will definatly save some time.

Regards

Rupesh
Back to top  
yogesh



Joined: 27 May 2005
Posts: 19

Posted: Tue Oct 18, 2005 4:48 pm    Post subject: Re: Combining two jobs into one will reduce CPU time?  

Hi friends,

there is no way u can save the 'CPU' time by combining to jobs in one jcl
even if u r using cobol program with files thru jcl each program will open open and close the file after execution, u can save ur one time when u combine two jobs in jcl so that u need not have to submit thenm twice.
Let me know if i am wrong.
Back to top  
bheemas



Joined: 19 Sep 2005
Posts: 6

Posted: Tue Oct 18, 2005 6:29 pm    Post subject: Re: Combining two jobs into one will reduce CPU time?  

Hello,

Here also I am getting mixed results. Who can give us the right suggestion. More over we are submitting jobs using CONTROL-M. In each job hundereds of system variables are set to control the flow. If we have both things in one job we dont need to set these parameters.

Looks like this definately need some brain-storming session and expert speak. Please share your thoughts. waiting for your solution.

Regards,
bheemas
Back to top  
MGIndaco



Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

Posted: Wed Oct 19, 2005 1:36 pm    Post subject:  

For what I know, and is not enough, CPU time depend on different variable and so it is not possible run a job twice with the same, exact result.
CPU time depend on your processor, the number of I/O, the amount of stress of machine and many other reason(try to think to a machine that has more than one subsystem).
Remember that what you see as SRT TCP ELAPSED and so on are really far from the CPU time concept(to look the really CPU time you must read the SMF record 40/41.. if I'm not wrong).

I suppose that your scenario need some clarification because if you have a job that produce a file(as sortout or other) and other one that read that file, you have to specify if you read/write from/to tape, dasd or virtual tape, and to have a good test you must run the two solution in the same subsystem first, both from your userid or from production environment, and if is possible with the same priority.
After this you will have the two time that have few differences(but they always have!).

If this can't help you I suppose that you must put some feedback of your execution to help us.

I hope in this.
Back to top  
phil rook



Joined: 25 Nov 2005
Posts: 12
Location: amsterdam

Posted: Fri Nov 25, 2005 10:01 pm    Post subject: Re: Combining two jobs into one will reduce CPU time?  

Adding steps together will not make any real difference.
Steps should be added together when the steps are related, i.e. output from one step is input to other.
You can reduce sort time sometimes by adding more SORTWK files.
Dynamic allocation is usually marginally slower.
Back to top  
k_vikram07



Joined: 23 Nov 2005
Posts: 34

Posted: Sat Nov 26, 2005 11:04 pm    Post subject:  

I am in a thinking that combining two jobs into one will make the execution of the JOB faster .

My reasoning was, the allocation of the datasets by the JES. JES may have to allocate the datasets twice, if it were in two jobs.

Let me know if this doesn't affect.

I also understand that the CPU time for each of these STEPS may not be any different.

Thanks
Vik.
Back to top  
phil rook



Joined: 25 Nov 2005
Posts: 12
Location: amsterdam

Posted: Sun Nov 27, 2005 9:55 pm    Post subject:  

to be quite honest I do not know why you are wasting time on this - you will not make any significant saving.

More important things are using the correct block size for the dataset ( this may reduce the CPU time),

or if the output from the sort is on tape using vol= (,retain).

Experiment using different block sizes - on some systems five blocks to a track works better. This was to do with Ibm machines having 5 buffers available for I/O. Whether on the newer Cpu's this is different I do not know.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM