Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

z/OS Introduction and Workshop

Job Entry Subsystem (JES)


Unit objectives
After completing this unit, you should be able to:
• Understand relationship between JCL and JES
• Describe JES spool
• List 3 JES queue types
• Describe JES initiator
• Describe relationship between SDSF and JES
Job Management
JES Functions
z/OS
What is spooling?
Spooling is a method for queuing and holding data for input or output.

JES uses one or more disk data sets for spooling.

Input jobs and printed output from many jobs are stored in the single (conceptual)
spool data set.
What an initiator does
To run multiple jobs asynchronously, z/OS uses initiators to:
– Ensure that jobs do not conflict in data set usage
– Ensure that single-user devices (tape drives) are allocated correctly
– Find executable programs requested by jobs
– Clean up after the job ends and request the next job

Preventing two users from accessing the same data at the same time is critical to z/OS
and the ability to do this is one of the defining characteristics of the operating system.
Spooling
JC L

// D D 1 D D *
p ro g ra m … … .. ... .. . .. ... ..
JE S 11
re a d 2 d a ta
… … .. ... . . ... ... ..

/*
sp o o l // D D 2 D D S Y S O U T =A

JE S 4
SYSOUT

w r ite 33

P r in te r
Job flow through the system
During execution, a job goes through the following phases:
– Input
– Conversion
– Processing
– Output
– Print (to hardcopy or a console display)
– Purge
Phases of job flow: input

JC L
C O N V E R S IO N
Q U E U E

IN P U T C O N V E R S IO N P RO CE S S ING O UT PU T H A R D-C O P Y PUR G E

J C L & S Y S IN
S P O O L
DD I ISS KK
Phases of job flow: conversion

JC L
C O N V E R S IO N E X E C U T IO N
Q U E U E Q U E U E

IN P U T C O NV E R S IO N P RO CE S S ING O UT PU T H A R D-CO P Y PUR G E

JC L
S P O O L
DD I ISS KK
Phases of job flow: execution

JC L initiator
E X E C U T IO N O U T P U T
Q U E U E Q U E U E

IN P U T C O N V E R S IO N P RO CE SSING O UT PU T H A R D -C O P Y PUR G E

S Y S IN SYSO U T

S P O O L
DD I ISS KK
Phases of job flow: output and hardcopy

JC L
O U T P U T H A R D -C O P Y P U R G E
Q U E U E Q U E U E Q U E U E

IN P U T C O NV E R S IO N P RO CE S S ING O UT PU T H A R D-CO P Y PUR G E

SYSO UT

N O N -P R I N T / P U N C H
O UT PU T

S P O O L
DD I ISS KK
Phases of job flow: purge

JC L
P U R G E
Q U E U E

IN P U T C O NV ER S IO N P RO CE S S ING O UT PU T H A R D -C O P Y P UR G E

S P O O L
DD I ISS KK
Job flow through the system

JC L
initiator
C O N V E R S IO N E X E C U T IO N O U T P U T H A R D -C O P Y P U R G E
Q U E U E Q U E U E Q U E U E Q U E U E Q U E U E

IN P U T C O N V E R S IO N P RO CE S S ING O UT PU T H A R D -C O P Y P UR G E

S Y S IN SYSO UT
SYSO UT

N e tw o rk j o b e n try
JC L (N J E )
J C L & S Y S IN SS PP OO OO LL
DD IS
IS KK
JES Initiators
//MYJOB JOB 1,CLASS=A

where CLASS=jobclass

In a JES2 system, the assigned job class can affect


whether or how a job is executed.

A job class can be defined during JES2 initialization


as 'Held'. The system holds any job assigned to this class
until the operator releases

Use the CLASS parameter to assign the job to a class.


The class you should request depends on the characteristics
of the job and your installation’s rules for assigning classes.
JES – Startup JCL & Parameters
//JES2 PROC
//IEFPROC EXEC PGM=HASJES20
//PROC00 DD DSN=VENDOR.PROCLIB,DISP=SHR
// DD DSN=SVTSC.PROCLIB,DISP=SHR
// DD DSN=LVL0.PROCLIB,DISP=SHR
// DD DSN=SYS1.PROCLIB,DISP=SHR
//HASPPARM DD DSN=VENDOR.PARMLIB(JES2420A),DISP=SHR
//HASPLIST DD DDNAME=IEFRDER
JES2 Job Initiator Parameter Definitions
VENDOR.PARMLIB(JES2420A)

INITDEF PARTNUM=99 JOBCLASS(A) ACCT=NO,


I(1) NAME=1, PGMRNAME=NO,
CLASS=KAB74 TIME=(1440,00),
I(2) NAME=2, REGION=1M,
CLASS=L74HAB COMMAND=VERIFY,
I(3) NAME=3, BLP=YES,
CLASS=74AB AUTH=ALL,
I(4) NAME=4, MSGLEVEL=(1,1),
CLASS=JIFAB74 COPY=NO,
I(5) NAME=5, HOLD=NO,
CLASS=EB74A JOURNAL=NO,
I(6) NAME=6, LOG=YES,
CLASS=B, OUTPUT=YES,
DRAIN PROCLIB=00,
SDSF Display of JES Initiators
z/OS Internet Library (JES2 Manuals)

JES2 Bookshelf
Commands
Initialization and Tuning Guide
Initialization and Tuning Reference
Introduction
Unit summary
Having completed this unit, you should be able to:

Understand relationship between JCL and JES

Describe JES spool

List 3 JES queue types

Describe JES initiator

Describe relationship between SDSF and JES
21

You might also like