Creating a scheduled task for the ZAGENT file
To run the ZAGENT file automatically, you can create a scheduled task.
Procedure
Run the following command to create a scheduled task:
$TA,T=HH.MM,I=SSSS,'$VS,''S J,J=ZAGENT,L=Dataset_name'''
- T
- The value of the T parameter is the system time that you want to run the ZAGENT file.
- I
- The value of the I parameter specifies the interval of the scheduled running in seconds.
- J
- The value of the job parameter J is
ZAGENT
. This parameter and the location parameter L determine the scan job that is ready to be executed. - L
- The value of the location parameter L is the name of the dataset where you put the ZAGENT file. This parameter and the job parameter J determine the scan job that is ready to be executed.
$TA,T=22.00,I=3600,'$VS,''S J,J=ZAGENT,L=TOOLS.AMEX.JCL'''
The system
will start the ZAGENT job ZAGENT at 22:00 and run the job again every 1 hour. Make sure to clear the
job log in time to avoid full storage.