View previous topic :: View next topic
|
Author |
Message |
jcbhimani
New User
Joined: 30 Nov 2006 Posts: 12 Location: Ahmedabad
|
|
|
|
Hi Friends,
If coded on both EXEC AND JOB like :
//SECOND JOB ,'R. KRISHNA',TIME=3
//STEP1 EXEC PGM=C,TIME=2
//STEP2 EXEC PGM=D,TIME=2
In this example, the job is allowed 3 minutes of execution time.
Each step is allowed 2 minutes of execution time. Should either
step try to execute beyond 2 minutes, the job will terminate
beginning with that step. If STEP1 executes in 1.74 minutes and
if STEP2 tries to execute beyond 1.26 minutes, the job will be
terminated because of the 3-minute time limit specified on the
JOB statement.
My doubt is that how is this possible when
EXEC - TIME will override JOB - TIME .
So, in this case both the steps should be executed regardless of the job time.
Please clarify my doubt. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
This example from manuals would help you understand its functioning:-
Quote: |
//TEST1 JOB MSGLEVEL=(1,1),TIME=(,50)
//STEP1 EXEC PGM=USES15,TIME=(,25)
//STEP2 EXEC PGM=USES30,TIME=(,40)
//STEP3 EXEC PGM=USESREST,TIME=0
STEP1 can use the processor for 25 seconds. If STEP1 actually uses the processor for only 15 seconds, the time limit for STEP2 is the smaller of the following values:
> The job time remaining (35 seconds)
> The time limit specified on the EXEC statement for STEP2 (40 seconds).
In this case, the job time remaining is the smaller value, so STEP2 can use the processor for 35 seconds. If STEP2, then, actually uses the processor for only 30 seconds, STEP3 can use the processor for 5 seconds, because that is the time remaining from the previous step. |
|
|
Back to top |
|
|
muthukannan
New User
Joined: 03 Aug 2006 Posts: 42 Location: Chennai
|
|
|
|
Hi,
EXEC - TIME will override JOB - TIME . This is the rule.
Even if the time specified in the job card is less. The job job will run for the specified time that is mentioned in the Exec statement.
Hope this clarified your doubt.
Correct me if am wrong.
Thank you,
MK |
|
Back to top |
|
|
jcbhimani
New User
Joined: 30 Nov 2006 Posts: 12 Location: Ahmedabad
|
|
|
|
Hi muthukannan.
then why is this rule made for :: EXEC - TIME will override JOB - TIME
when its of no use............. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Since it seems that priyesh.agrawal & muthukannan are in disagreement, maybe both would like to provide the manual numbers for verification? |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi jcbhimani,
Look at the following examples for TIME Parameter, to get a clear understanding yourself...
For override rules on TIME Parameter... Look here...
Quote: |
Since it seems that priyesh.agrawal & muthukannan are in disagreement, maybe both would like to provide the manual numbers for verification? |
Good Morning Sir... The piece of example posted above already originated from manuals...
Regards, |
|
Back to top |
|
|
|