Page 1 of 1

Time parameter

PostPosted: Tue Aug 10, 2010 1:21 am
by Vikrant Survase
i just want to know that what will happen if time parameter coded in jcl step is greater then than time parameter coded in jcl job statement?
bcoz as time parameter in step overrides the job parameter, will it override in above situation also?

Re: Time parameter

PostPosted: Tue Aug 10, 2010 2:42 am
by dick scherrer
Hello,

Read here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 90/20.26.6

If you want more information, search within that manual (the flashlight/tubelight near the top left).

If you find something in the manual that is not clear, post what you found and your doubt. SOmeone will be able to clarify.

Re: Time parameter

PostPosted: Tue Aug 10, 2010 4:55 pm
by ballaravi
i think it will override the time parameter in job statement

Re: Time parameter

PostPosted: Tue Aug 10, 2010 5:07 pm
by Robert Sample
ballaravi: in that case, you need to explain this example from the manual Dick cited:
Example 2


//SECOND JOB ,JONES,TIME=3
//STEP1 EXEC PGM=ADDER,TIME=2
.
.
.
//STEP2 EXEC PGM=PRINT,TIME=2
.

In this example, the job is allowed 3 minutes for execution, and each step is allowed 2 minutes. If either step continues executing beyond 2 minutes, the entire job abnormally terminates beginning with that step. If STEP1 executes for 1.74 minutes and STEP2 tries to execute beyond 1.26 minutes, the job abnormally terminates because of the 3-minute limit specified on the JOB statement.

Re: Time parameter

PostPosted: Fri Aug 13, 2010 2:27 pm
by ballaravi
Robert,
i mean time parameter in exec step will override the time parameter in job step.
is that write or not ?
i am in confusion right now .........

Re: Time parameter

PostPosted: Fri Aug 13, 2010 2:52 pm
by NicC
You sure are - there is no such beast as 'EXEC STEP' - they are al steps within a job.
I know the manual does not say that TIME on a step overrides TIME on the jobcard or, indeed, the reverse. However, if you analyse the examples you will see that the accumulated times of all steps in the job must be less than the TIME specified on the jobcard.

Re: Time parameter

PostPosted: Fri Aug 13, 2010 2:58 pm
by Robert Sample
The step TIME parameter is considered before the job TIME parameter -- there's no override involved since they both impact what happens. If you coded TIME=1 on the job card and TIME=10 on the EXEC for the step, will the step be allowed to execute for 10 minutes of CPU time? No, it will not -- after one minute the step is canceled due to the TIME=1 on the JOB card.

Re: Time parameter

PostPosted: Fri Aug 13, 2010 3:06 pm
by ballaravi
ok,thanks some what clear