View previous topic :: View next topic
|
Author |
Message |
balasubramaniyam
New User
Joined: 20 Feb 2004 Posts: 3
|
|
|
|
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 |
|
|
Johore
Specialist
Joined: 12 Sep 2003 Posts: 19
|
|
|
|
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 |
|
|
balasubramaniyam
New User
Joined: 20 Feb 2004 Posts: 3
|
|
|
|
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 |
|
|
Senthilkumar2
New User
Joined: 22 Mar 2004 Posts: 1
|
|
|
|
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 |
|
|
bluebird
Active User
Joined: 03 Feb 2004 Posts: 127
|
|
|
|
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 |
|
|
NILESHK2302
New User
Joined: 13 Feb 2004 Posts: 14 Location: hyd
|
|
|
|
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................ |
|
Back to top |
|
|
|