View previous topic :: View next topic
|
Author |
Message |
teja goud
New User
Joined: 28 Nov 2011 Posts: 14 Location: india
|
|
|
|
Hi to all,
recently i attend an interview , the interviewer asked me one question regarding time parameter,
in job step mentioned 10 , in step1 time mentioned 10 and in step2 time mentioned 20 , so in this case what will happen the job...
i said job time will override the step time ..is it correct or wrong
please give me the solutions
// job card ,......,....., Time=10
//step1 exec ............, time =10
//step2 exec.............. time =20
?
?
?
thanks to all in advance |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Teja,
Am not very sure the "question" you have posted here is complete. Anyway a reference is given below which might help you understand the logic.
JCL TIME parameter in JOB and STEP |
|
Back to top |
|
|
teja goud
New User
Joined: 28 Nov 2011 Posts: 14 Location: india
|
|
|
|
thanks binop,
actually the interviewer intention is the job ll abend or execute if it is successful how much time the job will take to execute .....
thanks |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Quote: |
how much time the job will take to execute |
/mindreadinghat on
Three minutes eighteen seconds
/mindreadinghat off
The job cannot use more time, in total for all the steps, than the time specified on the JOB card.
The individual steps cannot use more time than any time specified on their EXEC card.
You can try out all the combinations you like for yourself by using small numbers of seconds (say, 2 and 1, or 1 and 2, or 3, 2 and 2 if you want to get creative and have two steps). |
|
Back to top |
|
|
teja goud
New User
Joined: 28 Nov 2011 Posts: 14 Location: india
|
|
|
|
Thanks bill woodger,
Quote: |
"The individual steps cannot use more time than any time specified on their EXEC card." |
i think it is job card right , not in exec card,
so in my case the job will abend right ...?
thanks |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Oh God .. Hope Bill is in a good mood today ...
teja goud wrote: |
i think it is job card right , not in exec card,
so in my case the job will abend right ...? |
Can u elaborate on how u came to this conclusion.
Please note that you have provided 'very very' little info.. and I still feel that you have not posted the "complete" question. and anyway based on what u have said so far - nobody can tell if it will ABEND or execute successfully. |
|
Back to top |
|
|
chaky
New User
Joined: 28 May 2009 Posts: 20 Location: Bangalore
|
|
|
|
Yes, job will abend if it is taking more than 10 secs to execute both the steps. A step will take maximum time alocated on the step level, but the combined time taken for all the steps can not be more than the time on the job card. |
|
Back to top |
|
|
chaky
New User
Joined: 28 May 2009 Posts: 20 Location: Bangalore
|
|
|
|
Also, did you attend the igate interview? it is a very common question over there for interview. |
|
Back to top |
|
|
teja goud
New User
Joined: 28 Nov 2011 Posts: 14 Location: india
|
|
|
|
thanks chaky......
no no am not attended igate interview , i attended another company ...... |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Am I not always, Binop?
The JOB, any steps in combination which can include only one step, cannot take more time than is specified on any time parameter on the JOB card.
An individual step, cannot take more time than anything specified on the Exec card.
If you have JOB with Time=(,1) and EXEC with Time=(,2) the step will abend (S322) if more than one second of CPU time is consumed, due to what it says on the JOB card. So, it doesn't get to the second part of what I say. It abends under the first condition, making the second irrelevant.
Edit: Opportunity to fix some typos. |
|
Back to top |
|
|
teja goud
New User
Joined: 28 Nov 2011 Posts: 14 Location: india
|
|
|
|
thanks to all |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Just try it and have done with it. Site standards probably dictate how you should use TIME at any given installation. TIME on EXEC greater than TIME on JOB is illogical, but not a JCL error. |
|
Back to top |
|
|
|