IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DOUBT about TIME keyword parameter of JOB and EXEC


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jcbhimani

New User


Joined: 30 Nov 2006
Posts: 12
Location: Ahmedabad

PostPosted: Sun Dec 10, 2006 1:31 pm
Reply with quote

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. icon_lol.gif
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Dec 11, 2006 10:21 am
Reply with quote

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
View user's profile Send private message
muthukannan

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Mon Dec 11, 2006 4:21 pm
Reply with quote

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
View user's profile Send private message
jcbhimani

New User


Joined: 30 Nov 2006
Posts: 12
Location: Ahmedabad

PostPosted: Mon Dec 11, 2006 7:01 pm
Reply with quote

Hi muthukannan.
then why is this rule made for :: EXEC - TIME will override JOB - TIME
when its of no use.............
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Dec 11, 2006 7:06 pm
Reply with quote

Since it seems that priyesh.agrawal & muthukannan are in disagreement, maybe both would like to provide the manual numbers for verification?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Dec 11, 2006 10:05 pm
Reply with quote

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... icon_smile.gif
Regards,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top