• Aucun résultat trouvé

Job Management

Dans le document Program Logic (Page 39-42)

proces-sing required for communication between an operator and the control program. Major components of job management are the job scheduler, which introduces each job step to the system (job processing), and the communications and master scheduler tasks, which handle all operator-system communica-tion (command processing).

JOB SCHEDULER FUNCTIONS

The job scheduler includes three programs:

the reader/interpreter, the initiator/

terminator, and the system output writer.

The functions of the reader/interpreter are similar to the MVT reader; additional

information can be found in IBM System/360 Operating System: MVT Job Management, Pro-gram Logic Manual, Form Y28-6660.

After all control statements for a job have been processed, all initiators that are waiting for that job class are posted and the initiator residing in the highest priority partition is given control. The MFT initiator is described in the Job Man-agement section of this publication; for information on allocation and termination, refer to IBM System/360 Operating System:

Job Management

MVT Job Management, Program Logic Manual, Form Y28-6660.

When the job step has been executed, control is returned to the initiator/

terminator which performs data set disposi-tions and releases input/output (I/O) resources. If the entire job is to be ter-minated, the terminator enqueues all data sets on the appropriate system output (SYS-OUT) queues.

When the system output writer receives control, i t dequeues a job from an output queue, and transcribes the data sets to the user-specified output device. (see IBM System/360 Operating System: MVT Job Man-agement, Program LOgic Manual, Form

Y28-6660, for further information on the system output writer.)

COMMUNICATIONS TASK FUNCTIONS

The routines of the communications task process the following types of communica-tion between the operator and the system:

• Operator commands, entered through a console.

• Write-to-operator (WTO> and write-to-operator with reply (WTOR) macro in-structions.

• Interruptions caused when the INTERRUPT key is pressed, to switch functions from the primary console/master console to its alternate console.

• If the system has ~ultiple Console Sup-port, the communications task processes the delete operator message (DCM) macro instruction and provides buffer manage-ment for all console devices.

MASTER SCHEDULER TASK FUNCTICNS

The master scheduler task consists of SVC 34 and the master scheduler resident com-mand processor routines. The SVC 34 mand scheduler routines process all com-mands initially. The job queue manipula-tion and partimanipula-tion definimanipula-tions, which are not fully processed by SVC 34, are passed to the master scheduler resident command processor. Table 1 lists the commands used in MFT and indicates the routine which responds to the commands after initial processing.

Table 1. Responders to Commands After Initial Processing

r---T---,

I Command I Responder I

r---~~---+---~---~

I CANCEL ( active jobs) I Ini tiator I

r---+---~

I CANCEL (job in queue) I Master scheduler I

r---+---~

I DEFINE I Master Scheduler I

r---+---~

1f---~i~;~;-~~;~:;~;;;:':~N~~---t---~~~~~;---l

r---+---~

I DISPLAY R I Master Scheduler I

r---+---~---~

II

DISPLAY SPACE

I

I/O Device Allocation

I

r---+---~

I DISPLAY T I Timer Maintenance Routine

*

I

r---+---~

I

HALT

I

Statistics Update Routine

* I

r---+---~

I

HOLD

I

Master Scheduler

I

r---+---~

I t---;~~;---t---~;;~~-~~;d~i;;---1

r---+---~

I MODIFY I ~riter I

r---+---~

I MOUNT I Master scheduler I

r---+---~

I RELEASE I Master Scheduler I

r---+---~

I REPLY I Master Scheduler I

r---+---~

I

RESET

I

Master scheduler

I

r---+---~

I

SET CLOCK, DATE

I

Timer Maintenance Routine

* I

r---+---~

I SET PRCC, Q, AUTO I Master Scheduler I

r---+---~

I

START/STOP Reader

I

Reader/Interpreter

I

r---+---~

I

START/STOP Writer

I

Wri ter

I

r---+---~

I

UNLOAD

I

Initiator

I

r---+---~

I f---;~~;~---~---t---~;~~~;;____---l

r---~---~

I *

See the publication IEM System/360 Operating system: MV'I supervisor« Program

I

I

Logic Manual, Form Y28-6659.

I

l _______________________________________________________________________________________ J

JOB MANAGEMENT CONTROL FLOW

Figure 12 shows the major components of job management and the general flow of control.

Control is passed to job management Iwhenever the supervisor finds that there

are no program request blocks in the re-quest block queue. This can occur for two reasons: either the initial program load-ing (IPL) procedure has just been

com-pleted, or a job step has just been executed.

Entry to Job Management Following Initial Program Loading

Following IPL" certain actions must be taken by the operator before job processing can begin. Therefore, control passes to the communications task which issues a mes-sage to the operator instructing him to

~r- l

~g:s~~;'~

i---- COMMUNICATIONS Commands

SVC 34

COMMAND COMMAND

SCHEDULING --- EXECUTION

-RETURN TO CALLER OF SVC 34

COMMAND PROCESSI NG

~r-r----

TASK ROUTI NES ROUTI NES

I ~g:s~~;'~ ~---lr---~

wros and WTORs Indicating Errars

I

SVC 34 Cammands

WORK

i

See Table 1.

Input Job QUEUES System Output Job Description

DISK I

-"-.

---

JCL, Commands, and Data

r

-TAPE READING

TASKS

r

-Description

r

INITIATING TASKS

1

Initiate WRITING TASKS

JOB PROCESSING

c->

PRlN~

-TAPE I

-r ~

PROCESSING PROGRAM

Terminate

L(

CARD

I

CARD

READER

r -...,

PUNCH

'- ---'

PROCEDURE

1

L - - - . I

LIBRARY System Input r-...~ _ _ ~

System Output Data Sets Data Sets DA TA

... . / QUEUES

"-.

.Figure 12. Job Management Data Flow

enter commands, or to redefine the system.

If he chooses to redefine the system, con-trol passes to the master scheduler task to handle the redefinitions. If the system is not to be redefined, the initialization commands (a SET command, a START reader command, a START writer command, and a START INIT command) are issued (either automatically by the master scheduler task or by the operator performing the IPL), and job processing begins.

Entry to Job Management FOllowing Step Execution

Following step execution, control is passed to the step termination routine of the initiator/terminator. If no further job steps are to be processed, control is also

passed to the job termination routine of the initiator /termina tor. Both routines are described in the topic

·Initiator/~erminator."

MF'I job management is similar in many respects to MVT job management. However, certain major differences in logic exist.

~hese differences are described in two major topics. nCommand Processing"

includes the communications task and master scheduler task. "Job Processing" includes:

• Queue Management.

• Reader/Interpreter.

• Initiator/Terminator.

• system output writer.

• System task control.

• System restart.

References to IEM System/360 Operating module descriptions, and MFT flowcharts are included in the appendixes.

Dans le document Program Logic (Page 39-42)