Job Management

On AS/400 Job is a Unit of Work Done. When a job is started, system creates a set of resources for the job. These resources are destroyed automatically by the system, when the job ends. The AS/400 assigns a unique identifier to each AS/400 job. The job identifier consists of three parts :  a system assigned job number ; the user profile of the user associated with the job and a general job name. Thus a Job is identified by a Job name, a User and a Job Number (6 digits). Valid job names are
    024671/Nishar/DSP01
    345678/Ahamed/MONTHEND

There are 2 types of user jobs
        1. Interactive
        2. Batch

       
Interactive jobs require constant interaction between the user and the computer. Interactive jobs usually involve typing information into a display screen and waiting for the computer to respond.

Batch job runs in the background without interaction with user. Ends when all programs that are part of batch jobs are terminated. Have lower priority when compared to Interactive Jobs.

There are 3 types of system jobs
        1.Prestart
        2.Autostart
        3.Communication

       
User can do the following activities with the job.
        1.END
        2.HOLD
        3.RELEASE
        4.CHANGE
       

Every job is having priority to run on the system.1 is highest priority and 9 is lowest priority. 5 is the default priority. Administrator can change the priority.


1.  Use following command to track a particular user’s jobs,
        WRKUSRJOB

2. Use following command to find out jobs in JOBQ,
        WRKJOBQ

3. Use following command to find scheduled jobs
        WRKJOBSCDE

4. To submit a job in batch use following command.
        SBMJOB

5. To find total number of active jobs on the system use the command as,
        WRKACTJOB

6. To find jobs running in particular subsystem use,
        WRKSBSJOB