12 Overview to Interactive and Batch Jobs

This chapter contains these topics:

12.1 Objectives

  • To understand the differences between interactive and batch processing.

12.2 About Interactive and Batch Jobs

Most interactive and batch programs have processing options associated with them. Processing options allow you to determine the specifications of a program or report version.

The batch job runs independently of your interactive job. When you submit a batch job, you can continue working on your computer without waiting for the system to process the job.

12.2.1 What Is an Interactive Job?

An interactive job starts when you sign on to the system and ends when you sign off the system. During the job, you interact with the system. You enter requests and the system acts on each request. For example, when you choose an option or enter a command, the system reacts to each entry and then moves on to the next to create a sequence of events.

12.2.2 What Is a Batch Job?

A batch job consists of a predefined group of processing actions that require little or no interaction between you and the system. When you submit the batch job, the job enters a job queue where it waits until the system is ready to process the job. The system begins processing the job when it takes the job from the job queue. A batch job is put in a job queue by:

  • Choosing a menu option that submits a batch job

  • Submitting a job into the system using the SBMJOB command

A job queue might contain many jobs waiting for the system to process them. Your job waits while the system processes other jobs that other users submit prior to your job or have a higher priority. When system resources are available, the system processes your job.