Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Writing a day's work scheduler z/OS JES2 Initialization and Tuning Guide SA32-0991-00 |
|
Establish the use of automatic command processing with the AUTOCMD parameter on the CONDEF statement at initialization. You can enter the commands with the JES2 $T command or write a program to put command statements through an internal reader. Use the T= keyword on the $T A command to specify the time of day JES2 will issue automatic command(s). T= specifies a time in hours (hh) and minutes (mm) from the previous midnight. Therefore, if the specified time is earlier than the current time, the command is executed immediately. If the time is greater than the current time, the command will be executed hh hours and mm minutes after the last midnight. If the specified time is greater than 24 hours, (note the maximum value for T= is 99.59) a command can be executed up to as many as 3 days, 3 hours, and 59 minutes after the previous midnight. (The time is reset by JES2 each day (at midnight) by decreasing the value by 24 hours.) The following example shows these three situations. If the current time is 14:00 on Tuesday, then:
Be aware that if these automatic commands are not added to your initialization data set, and JES2 experiences a failure, the commands are lost. You can prevent such situations by adding the commands to your initialization data set or by submitting a $TA,T=24.01,'$VS,'S D,JOB=jobname'' (where D is a reader procedure and jobname defines a job that contains the series of automatic commands your installation wants to execute daily) command to automatically recall the job each day. Note that the following example procedure provides a set of automatic commands that are continually refreshed daily.
The following statements represent sample command statements placed in the initialization data set:
These four statements mean the following (and include times of
the day set aside for the processing):
These commands may be set up by a user-written program for scheduling
the day's work. This program can use the internal reader to enter
the commands in the subsystem. When writing such a program, consider
the following:
|
Copyright IBM Corporation 1990, 2014
|