How does a batch job start in AS400

How a batch job starts in AS400
How a batch job starts in AS400, flow of the batchob in as400, sbmjob, jobq, jobd, outq, msgq, subsystem, spool, introduction, what, about
How a batch job starts in AS400

How does a batch job start

When a user submits a batch job the job retrieves some information before getting placed in the Job queue (JOBQ).

  1. A user submits a job using the command SBMJOB.
  2. The Job looks for the job attributes. If the job attributes are not found on the SBMJOB command, the job looks that in the Job description (JOBD) specified on the SBMJOB command.
  3. Once the Job retrieves all the attributes of the job and placed it on the job queue (JOBQ) where the job resided and waiting for its turn to get processed.
  4. When the subsystem is ready to process a job, it looks for the jobs in the job queue (JOBQ) allocated to the subsystem.
  5. The subsystem then checks for the Job description (JOBD) for the routing data.
  6. The subsystem finds routing entries by using routing data.
  7. The routing program is run and it runs the command specified on the CMD or RQSDTA parameter.

The flow of a Batch Job

  1. SBMJOB command submits the batch job.
  2. The job goes to Job queue with status JOBQ and waits for its turn to be processed by the batch subsystem.
  3. Job picked from Job queue by the subsystem and becomes ACTIVE status means it's running.
  4. Once the job gets finished it goes to the output queue (OUTQ) and it moves to printer writer where the spool gets printed.

Related Post

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain