Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DOUBT about TIME keyword parameter of JOB and EXEC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: DOUBT about TIME keyword parameter of JOB and EXEC
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: 1452
Location: Chicago, IL

PostPosted: Mon Dec 11, 2006 10:21 am    Post subject: Re: DOUBT about TIME keyword parameter of JOB and EXEC
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    Post subject: Re: DOUBT about TIME keyword parameter of JOB and EXEC
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Mon Dec 11, 2006 7:06 pm    Post subject: Re: DOUBT about TIME keyword parameter of JOB and EXEC
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: 1452
Location: Chicago, IL

PostPosted: Mon Dec 11, 2006 10:05 pm    Post subject: Re: DOUBT about TIME keyword parameter of JOB and EXEC
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us