Consider the following when you create a time monitor:
-
If your system or your job is configured to use Julian date format, the monitor job is submitted to run as if the normal date format is in use. For example, you have a time monitor that specifies a Frequency of monthly (FRQ(*MONTHLY)) but the system uses the Julian date format where days of the year are sequentially numbered rather than divided into months. The job for your time monitor is submitted to run as if the system uses a date format that divides the year into months.
-
If you specify a Frequency of monthly but a month does not contain the day specified on the Scheduled date parameter, the job is not run that month. For example, if SCDDATE(01/31/99) and FRQ(*MONTHLY) are specified, the job is submitted on the 31st day of January, March, May, July, August, October, and December. The job will not run in February, April, June, September, and November.
-
To submit a job on the last day of every month, specify SCDDATE(*MONTHEND).
-
To submit a job that runs every day, specify SCDDAY(*ALL).
-
If a Scheduled time has not passed, a job will run on the specified date or day of the week according to any additional limits placed on the job by the parameters that control frequency and relative day of the month. For example:
-
You specify a scheduled date of *MONTHSTR and a scheduled time of 2 a.m. If today is the first day of the month and it is before 2 a.m., the job is submitted today. Otherwise, the job is submitted on the first day of the next month.
-
If SCDDAY(*FRI) and SCDTIME(12:00:00) are specified and you are adding this job schedule entry at 11:00 a.m. on a Friday, the job is submitted today. If you are adding the entry at 4:00 p.m. on a Friday or at 11:00 a.m. on a Monday, the job is submitted the following Friday.
-
-
The Relative day of month (RELDAYMON) parameter specifies the relative day of the month on which the monitor is run. The relative day of the month is valid only when a value is specified for the Scheduled day (SCDDAY) and the Frequency (FRQ) is specified as *MONTHLY. For example, if you specify FRQ(*MONTHLY) SCDDAY(*TUE) RELDAYMON(2), the job is submitted on the second Tuesday of every month.