The Control‑M monitor is usually activated as a started task and remains active 24 hours a day. At a set time each day (defined using installation parameters), New Day processing is performed by the Control‑M monitor.
New Day processing consists of both automatic cleanup from the previous day’s job ordering and automatic ordering of jobs for the New Day.
The main components related to New Day processing are
tables and job scheduling definitions
New Day procedure and User Daily job
Date Control records
Active and History Jobs files
IOA Conditions file
Journaling
New Day processing is completely automated through the use of the New Day procedure and User Daily jobs. The main purpose of the New Day procedure and User Daily jobs is to call programs that
change the Control-M logical working date
perform cleanup of previous days' jobs and compress the AJF in the process. If a History Jobs file was defined during Control-M installation, the deleted jobs may optionally be copied to the History AJF
perform IOA Conditions file cleanup to delete conditions whose ODAT is the same as the upcoming Control-M working date
scan tables to select jobs for scheduling
schedule the selected jobs (place copies of the selected job scheduling definitions as job orders in the Active Jobs file)
perform History Jobs file cleanup based on the retention criteria specified in the jobs’ scheduling definition
delete archived SYSOUT datasets that are no longer referenced by jobs in the AJF or History Jobs file
back up the previous day's Journal file and initialize the current day's Journal files.
Both the New Day procedure and each User Daily job must have its own Date Control record. A Date Control record is a member in the Control‑M PARM library in which relevant date information is placed during New Day processing. This date information is used to manage job orders.
Selection of jobs is based on the Date Control record, the current date and the Basic Scheduling parameters of the jobs in the tables. Any time the User Daily job is run, the current working date is placed in the Date Control record. The Basic Scheduling parameters of each job in the table are checked against this date to determine if the job must be placed in the Active Jobs file.
The following figure shows New Day Processing:
Figure 21 New Day Processing
New Day processing generally works as follows:
The New Day procedure is performed each day at a predefined time. The New Day procedure:
Schedules User Daily jobs
Schedules maintenance jobs. These jobs call programs that perform cleanup after the previous day’s processing.
If a cyclic job is executing at the time the New Day procedure is run, the New Day procedure changes the job to a non‑cyclic job and handles the job accordingly.
If a job that was not submitted on its original scheduling date contains a > specification in its TIME UNTIL field, when the New Day procedure is next run, the procedure deletes the > and TIME FROM specification from the job order, making the job immediately eligible for execution.
If History Jobs file processing is enabled, jobs deleted from the Active Jobs file during cleanup can be placed in the History Jobs file.
User Daily jobs (scheduled by the New Day procedure) select and schedule all other jobs for that day.
The following figure shows New Day Procedure and User Daily Jobs: