Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL time limit commands

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
balasubramaniyam

New User


Joined: 20 Feb 2004
Posts: 3

PostPosted: Fri Feb 27, 2004 1:08 am    Post subject: JCL time limit commands
Reply with quote

Is there any time limit parameter we can specify in a JCL that can intimate MVS that the current job should be completed by this time?
i.e, Lets say <parameter>=12:00 means the JOB will be completed by 12 noon. I heard that there is a parameter supplied by JES2. However I am unable to find it. I seek your counsel buddies.
Back to top
View user's profile Send private message

Johore

Specialist


Joined: 12 Sep 2003
Posts: 19

PostPosted: Fri Feb 27, 2004 9:32 am    Post subject:
Reply with quote

U can use the TIME parameter

"TIME=" is a keyword parameter used to specify the maximum amount of processing time that a job step may run in the central processing unit (CPU).TIME is specified in standard IBM terms of minutes and seconds. To ask for 100 seconds, code the TIME=(1,40) parameter on the JOB statement

Quote:
SYNTAX :
//JOBNAME JOB ,'your name',TIME=(,30)
or
//STEP1 EXEC PGM=TESTJOB,TIME=2


Quote:
TIME=(1,30)

This example instructs the computer that the CPU should not process the job for longer than one minute and 30 seconds


TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time.

Quote:
TIME=1440 means no CPU time limit is to be applied to this step. It means 24hrs , hence the job will run continuously
Back to top
View user's profile Send private message
balasubramaniyam

New User


Joined: 20 Feb 2004
Posts: 3

PostPosted: Fri Feb 27, 2004 11:52 pm    Post subject:
Reply with quote

Hi thanks for the reply,

Time parameter won't help as its the threshold for the amount of CPU that can be consumed by a JOB. What I am asking is there any parameter we can specify in JCL that will tell that this job should be executed by 12 noon.
Back to top
View user's profile Send private message
Senthilkumar2

New User


Joined: 22 Mar 2004
Posts: 1

PostPosted: Mon Mar 22, 2004 2:57 am    Post subject:
Reply with quote

Hi, Each job has its own estimated time to execute and scheduled accordingly.If we need to complete it before 12noon, and if the job takes on an average 30 mins, then it can be scheduled to run 11, 11:30.
Also, you can priopritize your job depending upon its priority.

Bottomline - scheduling the job will solve your problem.
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Mar 22, 2004 1:04 pm    Post subject:
Reply with quote

hello,

you may use JES2 automatic command to relase your job.

have a job (A) that will issue JES release command on an automatic command to be executed at say 12 against your job (B) that is then submitted thru an internal reader step in job (A)

but you need to make sure automatic commands are not disabled at your shop.
Or you can schedule your job thru a job package.

IMHO the automatic command process should only be used occasionnaly, If your job needs to be run on a regular basis, use scheduling package and ask your production people.


AND there are no direct MVS way to do this.
Back to top
View user's profile Send private message
NILESHK2302

New User


Joined: 13 Feb 2004
Posts: 14
Location: hyd

PostPosted: Tue Mar 23, 2004 6:22 pm    Post subject:
Reply with quote

Yeah ,

the only best way is to go out for a scheduling package as suggested by blue bird..........in scheduling package you can decide and quote which day/which time/how long the job should/can run................ icon_smile.gif
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us