Auto start job subsystems
The subsystems used for auto start jobs are managed in one program, 'Subsystem. Open' (MNS050). The jobs in a subsystem can be started and stopped from the program 'Subsystem Job. Open' (MNS051).
e
Working with subsystems
(MNS050/B) displays the subsystem. ASJ is the only valid subsystem type. Use option 1='Create' to create a new subsystem.
Use related option 11='Job in subsystem' on a subsystem record to see the connected jobs in 'Subsystem Job. Open' (MNS051).
(MNS050/E) contains the detailed information about the subsystem. The 'Delay' field specifies the default delay in seconds that a job "sleeps" between iterations. The value is normally 60 seconds.
The 'User' field displays the ID of the user that usually starts the subsystem and runs the jobs. This setting can be overridden by entering a user in 'Subsystem Job. Open' (MNS051). The value is normally M3. The user value can define different configurations per user on (MNS100/L) (retrieved from (MNS102), (MNS104)). If you have a different system configurations, then there are different subsystems with their jobs. If you have the same system configuration there is a subsystem.
Working with subsystem jobs
(MNS051/B) displays all the jobs in the subsystem and enables you to add new jobs. You can select F14='Crt standard' to automatically create the default set of jobs, or you can select the related option 22-'Add new instance' to create a new instance of the job manually. You can set the job status depending on your preferred job usage.
- 10='Preliminary': This status is for newly created jobs. Jobs with 10 status does not run when the subsystem is started.
- 20='Definite': This status is to be set for jobs that should be active. Jobs with 20 status runs when the subsystem is started.
- 90='Blocked/expired': This status is for jobs that are not in use. Jobs should not be deleted in the subsystem if they are not intended to be used, only set it to status 90.
Deleted jobs in (MNS051) are automatically recreated every Maintenance Window. Although others are in status 10 upon recreation, some jobs are automatically in status 20.
Option 11='Sel records' displays 'Subsystem Job. Select Records' (MNS052), where you can select specific jobs to be included.
F14='Crt standard' creates the standard auto start jobs. This function creates all auto start job for one subsystem.
F19='Start all' starts all jobs in (MNS051). Only jobs that have units of work to process are started.
F20='End all' ends all jobs in (MNS051).
Option 20='Start Job' starts the selected job.
Option 21='End job' ends the selected job.
Option 22='Add New Instance' creates a new instance of the selected job.
The 'Delay' field shows the time, in seconds, that elapses from when the job has stopped processing units of work until it should start again. The processing stops when there are no more units of work to process. The delay time entered in 'Subsystem Job. Open' (MNS051) does not affect the batch job manager, CMNGJOB. That time is set in the M3 properties table.
When the auto start job is activated by a work table, the delay starts to look for new data when the queue does not contain any more records, that is, when the 'No rec' field is equal to 0.
When the auto start job is activated by a transaction table, the delay starts to look for new data after all transactions are run and updated.
The 'File' field defines the work table that activates the auto start job. If this record is blank, the auto start job is activated by a transaction table.
The 'No records' field shows the number of records that are queued and waiting to be processed by the auto start job.
The 'Active' field shows if the job is active and in use. Only jobs with status 20 can be active. However, jobs with status 20 can also be inactive for certain reasons.
The 'Select/Omit' (S/O) field shows if a record is selected with option 11='Sel records' to be displayed in 'Subsystem Job. Select Records' (MNS052), where you can restrict the jobs to be included. For some auto start jobs, you can select a subset of units of work through 'Subsystem Job. Select Records' (MNS052). This is useful when more than one instance of a job is required to increase throughput. For example, one job processes units of work for company 001 and another job processes units of work for company 999.
The 'Active change rate' field displays how active the job is during a period of time. This indicates how many status changes occur when the code is executed. For example, READ, READ_LOCK, or CHAIN etc., these similar statuses can be seen in a profiler log. All status changes do not require the same amount of time. For example, although a READ_LOCK can take a few seconds, SETLL requires almost no time. Therefore, the change rate is not an absolute measure of how fast a job is running. It only indicates the frequency of activity in a job.
On (MNS051/E), these fields are displayed:
- Program: The program that controls the job.
- Delay: Same field description from (MNS051/B).
- File: Same field description from (MNS051/B).
- Company, Division: The company and division for which the job is run. If company is not specified here, the default company and division entered in 'Subsystem. Open' (MNS050) is used.
- System Language: The system language for which the job is run. If system language is not specified here, the default system language for the user entered in the 'User' field will be used. (If the user is not connected to a system language, the job will be run with the language of the program.)The system language for which the job is run.
- User: The user for which the job is run. If no user is specified here, the job is run for the user specified in 'Subsystem. Open' (MNS050).
- Max queue size: The field indicates the number of records distributed to the consumers.
- Run mode: The field indicates whether the auto-start job runs with In-Memory Queue or as a classic job. You can only change this field for IMQ-enabled jobs.
- Max nbr consumers: The field indicates the number of parallel thread that process jobs on queue.