¡Descarga Procesos Batch, JCL y JES y más Resúmenes en PDF de Tecnologías de la Información y la Comunicación solo en Docsity!
z/OS
JES2 Introduction
IBM
SA32-0994-
Note Before using this information and the product it supports, read the information in “Notices” on page
This edition applies to IBM®^ z/OS®^ 3.2 (5655-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions.
Last updated: 2025-09-
© (^) Copyright International Business Machines Corporation 1990, 2025. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- Chapter 1. Introduction to JES2............................................................................. Summary of changes for z/OS 3.1...............................................................................................................xi
- What is a JES?..............................................................................................................................................
- How JES2 fits into the z/OS system............................................................................................................
- Relationship of JES2 to JCL and submitted jobs.........................................................................................
- Overview of JES2.........................................................................................................................................
- JES2 configurations................................................................................................................................
- JES2 functions........................................................................................................................................
- Customizing JES2...................................................................................................................................
- Interacting with JES2.............................................................................................................................
- Chapter 2. Scope of control and configurations.......................................................
- JES2 data set control...................................................................................................................................
- Spool data sets and spooling.................................................................................................................
- Maintaining integrity...............................................................................................................................
- JES2 configurations.....................................................................................................................................
- Single-system configuration...................................................................................................................
- Multiple-system configuration...............................................................................................................
- Running multiple copies of JES2 (poly-JES)..........................................................................................
- JES2 remote job entry (RJE)..................................................................................................................
- JES2 network job entry (NJE)..............................................................................................................
- Chapter 3. JES2 job processing and functions.......................................................
- Phases of job processing...........................................................................................................................
- Input phase..........................................................................................................................................
- Conversion phase.................................................................................................................................
- Processing phase..................................................................................................................................
- Output phase........................................................................................................................................
- Hard-copy phase..................................................................................................................................
- Purge phase..........................................................................................................................................
- JES2 capabilities and functions................................................................................................................
- Getting work out of z/OS......................................................................................................................
- Selecting work to maximize efficiency................................................................................................
- Offloading work and backing up the system.......................................................................................
- Supporting advanced function presentation (AFP) printers...............................................................
- Providing security.................................................................................................................................
- Supporting APPC..................................................................................................................................
- Chapter 4. Customizing your JES2 system............................................................
- JES2 initialization data set........................................................................................................................
- Minimum required statements............................................................................................................
- JES2 table pairs.........................................................................................................................................
- JES2 IBM-defined exits.............................................................................................................................
- JES2 installation-defined exits..................................................................................................................
- Chapter 5. Interacting with JES2.........................................................................
- JES2 operations.........................................................................................................................................
- Operator control...................................................................................................................................
- Automatic commands..........................................................................................................................
- Automating JES2 operations...............................................................................................................
- JES2 communication mechanisms...........................................................................................................
- JES2 Tracing Facility.............................................................................................................................
- JES2-IPCS formatting..........................................................................................................................
- Appendix A. JES2 Publications............................................................................
- Appendix B. Accessibility.....................................................................................
- Notices................................................................................................................
- Terms and conditions for product documentation...................................................................................
- IBM Online Privacy Statement..................................................................................................................
- Policy for unsupported hardware..............................................................................................................
- Minimum supported hardware..................................................................................................................
- Programming Interface Information.........................................................................................................
- Trademarks................................................................................................................................................
- Index..................................................................................................................
Figures
- Relationship of JES2 to the Base Control Program...................................................................................... 2
- Remote Job Entry Configuration................................................................................................................... 8
- Example of a Remote Job Entry (RJE) Configuration................................................................................... 9
- Example of a Network Job Entry (NJE) Configuration................................................................................
- A Network of Various Processing Systems................................................................................................. 12
- Job Processing Phases................................................................................................................................
v
About this document
This document provides an introduction to the job entry subsystem 2 (JES2). It is meant to provide an overview of JES2; it is not meant to be an instructional manual. This document is specifically designed for installations running z/OS. This document presents:
- JES2 as a unified set of related functions whose purpose is to accomplish certain data processing goals for MVS
- JES2 and its relationship to MVS, Time Sharing Option Extensions (TSO/E), and components of the MVS operating system
- An overview of JES2 functions, device control, network job entry (NJE), remote job entry (RJE), initialization, operations, customization techniques, and diagnostic tools.
Who should read this document
This document is intended for the MVS system programmer, operator, data processing manager, or student who is unfamiliar with JES2 and its functional relationship to the base control program of MVS. This document is specifically designed for installations that are evaluating or running z/OS JES2. However, much of the function described is available in previous versions of the JES2 component in MVS/System Product Version 1, Version 2, Version 3, Version 4, and Version 5. Therefore, most of the material presented here applies to JES2 at those version/release levels because of the overview-level of detail. The document, however, makes no distinction between functions and in what version/release they were added to JES2.
How to use this document
To obtain the most from this document, you should read it sequentially. The information presented in each chapter and topic is built upon previous information. If you are unfamiliar with JES2 concepts and terminology, you will find that reading the document in this manner is most helpful.
Additional Information
Additional information about z/OS elements can be found in the following documents.
Title Order Number Description
z/OS Introduction and Release Guide
GA32-0887 Describes the contents and benefits of z/OS as well as the planned packaging and delivery of this new product.
z/OS Planning for Installation GA32-0890 Contains information that lets users:
- Understand the content of z/OS
- Plan to get z/OS up and running
- Install the code
- Take the appropriate migration actions
- Test the z/OS system
z/OS Information Roadmap SA23-2299 Describes the information associated with z/OS including z/OS documents and documents for the participating elements.
© (^) Copyright IBM Corp. 1990, 2025 vii
Title Order Number Description
z/OS Release Upgrade Reference Summary
SA23-2300 Describes the changes to messages for individual elements of z/OS. Note: This document is provided in softcopy only on the message bookshelf of the z/OS collection kit.
viii z/OS: z/OS JES2 Introduction
x z/OS: z/OS JES2 Introduction
Summary of changes
This information includes terminology, maintenance, and editorial changes. Technical changes or additions to the text and illustrations for the current edition are indicated by a vertical line to the left of the change. Note: IBM z/OS policy for the integration of service information into the z/OS product documentation library is documented on the z/OS Internet Library under IBM z/OS Product Documentation Update Policy (www.ibm.com/docs/en/zos/latest?topic=zos-product-documentation-update-policy).
Summary of changes for z/OS 3.
The following content is new, changed, or no longer included in z/OS 3.2.
New
The following content is new. September 2025 release
Changed
The following content is changed. September 2025 release
Deleted
The following content is deleted. September 2025 release
- References to JES3 are removed (which applies to z/OS 3.1 and later).
Summary of changes for z/OS 3.
This information contains no technical changes for this release.
© (^) Copyright IBM Corp. 1990, 2025 xi
Chapter 1. Introduction to JES
This introduction answers the following questions:
- What is a JES?
- Why is JES required in an MVS system?
- What is the relationship between JES and the system users?
- What are some of JES2's key functions? This introduction provides some background if you are new to MVS, followed by a more detailed discussion of JES2.
What is a JES?
MVS uses a job entry subsystem (JES) to receive jobs into the operating system, schedule jobs for processing by MVS, and control job output processing. JES2 (job entry subsystem 2) is descended from HASP (Houston automatic spooling priority), which is defined as a computer program that provides supplementary job management, data management, and task management functions such as: scheduling, control of job flow, and spooling. HASP persists within JES2 as the prefix string for most module names and for all messages sent by JES2 to the operator. JES2 is a functional extension of the HASP II program that receives jobs into the system and processes all output data produced by the job. JES2 is the component of MVS that provides the necessary functions to get jobs into, and output out of, the MVS system. It is designed to provide efficient spooling, scheduling, and management facilities for the MVS operating system. (See “Spool data sets and spooling” on page 5 for a full definition of spooling.) By separating job processing into a number of tasks, MVS operates more efficiently. At any point in time, the computer system resources are busy processing the tasks for individual jobs, while other tasks are waiting for those resources to become available. In its most simple view, MVS divides the management of jobs and resources between the JES and the base control program of MVS. In this manner, JES2 manages jobs before and after running the program; the base control program manages them during processing. Figure 1 on page 2 presents a diagram of the relationship between JES2 and MVS.
© (^) Copyright IBM Corp. 1990, 2025 1
Figure 1. Relationship of JES2 to the Base Control Program
How JES2 fits into the z/OS system
During the life of a job, both JES2 and the base control program of z/OS control different phases of the overall processing. Most jobs go through the following phases:
- Input
- Conversion
- Processing
- Output
- Print/punch (hard copy)
- Purge With the exception of the processing phase, all job phases are controlled by JES2. These phases are explained in more detail in Chapter 3, “JES2 job processing and functions,” on page
2 z/OS: z/OS JES2 Introduction
JES2 functions
To manage job input/output responsibilities for z/OS, JES2 controls a number of functional areas, all of which you can customize. Some of the major functional areas and processing capabilities are:
- Getting work into and out of MVS (input/output control)
- Maximizing efficiency through job selection and scheduling
- Offloading work and backing up system workload
- Supporting advanced function printers (AFPs)
- Running multiple copies of JES
- System security. Each of these is discussed in Chapter 3, “JES2 job processing and functions,” on page 13.
Customizing JES
JES2 has the flexibility to fulfill an installation's unique processing needs. An installation can virtually control every JES2 function. You can perform many customization tasks when JES2 is installed, and you can dynamically customize JES2 whenever your processing needs change. JES2 provides initialization statements, commands, IBM-supplied exit points, the ability to add installation-defined exit points that require minimal source code modification, and the ability to change many commands and system messages, all without the need to modify the IBM-supplied code. See Chapter 4, “Customizing your JES system,” on page 19 for a more complete description of these customization facilities.
Interacting with JES
No large data processing system or subsystem can continually operate independently of system programmer or operator intervention. A two-way communication mechanism between the operator and JES2 is required. Based on system workload and device requirements, JES2 must communicate its status to the operator, system programmer, or both. JES2 issues messages to communicate job and device status, problem situations, system resource constraint situations, and performance status. Through commands, you can request current status and through the use of various tools you can obtain further information to diagnose and correct problem and system failure situations. Chapter 5, “Interacting with JES2,” on page 23 provides an overview of these topics.
4 z/OS: z/OS JES2 Introduction
Chapter 2. Scope of control and configurations
This information answers the following questions:
- How does JES2 manage its work?
- Where does JES2 store its data, and how does JES2 provide data integrity?
- What is spooling?
- What is checkpointing?
- What processing configurations does JES2 support?
- What is a multi-access spool complex?
- What is poly-JES?
- What is remote job entry?
- What is network job entry? The control that JES2 has over certain data sets and devices allows z/OS to offload work to JES2. The means by which JES2 maintains these data sets is unique to JES2. Furthermore, the configurations in which JES2 operates range from simple to rather complex. This chapter provides a basic understanding of the JES2 operating configurations.
JES2 data set control
JES2 maintains copies of its data sets that contain job and output queues on direct access storage devices (DASD). Future work is added to these queues and JES2 selects work for processing from them. These data sets and queues must remain current and accurate to maintain system integrity and performance.
Spool data sets and spooling
Simultaneous peripheral operations online (spool) has several meanings as used in this book and throughout JES2 documentation. Spooling is a process by which the system manipulates its work. This includes:
- Using storage on direct access storage devices (DASD) as a buffer storage to reduce processing delays when transferring data between peripheral equipment and a program to be run.
- Reading and writing input and output streams on an intermediate device for later processing or output.
- Performing an operation such as printing while the computer is busy with other work. Spool also refers to the direct access device that contains the spool data sets. This definition is generally apparent from the context of its use and should not cause any misunderstanding in the JES documentation. Spooling is critical to maintaining performance in a z/OS-JES2 environment. JES2 attempts to maximize the performance of spooling operations, which ultimately benefits the throughput of work through the JES2 installation. As noted previously, spooling provides simultaneous processing and a temporary storage area for work that is not yet completed. When JES2 reads a job into the system, JES2 writes the job, its JCL, its control statements, and its data to a spool data set until further processing can occur.
Maintaining integrity
Errors can occur while processing jobs and data. Some of these errors can result in the halting of all system activity. Other errors can result in the loss of jobs or the invalidation of jobs and data. If such errors occur, it is preferable to stop JES2 in such a way that allows processing to be restarted with minimal loss of jobs and data. The checkpoint data set , checkpointing , and the checkpoint reconfiguration dialog all help to make this possible.
© (^) Copyright IBM Corp. 1990, 2025 5
Single-system configuration
A JES2 configuration can contain as few as one processor (one z/OS and JES2 system) or as many as 32 processors linked together. A single processor is referred to as a single-system configuration , which is suitable for a configuration with a small work load, or one that requires a single processor to be isolated from the remainder of the data processing complex.
Multiple-system configuration
Many configurations take advantage of JES2's ability to link processors together to form a multiple- processor complex, which is generally referred to as a multi-access spool (MAS) configuration. A multi- access spool configuration consists of two or more JES2 (MAS) processors at the same physical location, all sharing the same spool and checkpoint data sets. There is no direct connection between the processors; the shared direct access data sets provide the communication link. Each JES2 processor can read jobs from local and remote card readers, select jobs for processing, print and punch results on local and remote output devices, and communicate with the operator. Each JES2 processor in a multiple processor complex operates independently of the other JES2 processors in the configuration. The JES2 processors share a common job queue and a common output queue, which reside on the checkpoint data sets. These common queues enable each JES2 processor to share in processing the installation's workload; jobs can run on whatever processor is available and print or punch output on whatever processor has an available device with the proper requirements. Users can also specifically request jobs to run on a particular processor and output to print or punch on a specific device. If one processor in the configuration fails, the others can continue processing by selecting work from the shared queues and optionally take over for the failed processor. Only work in process on the failed processor is interrupted; the other JES2 systems continue processing.
Running multiple copies of JES2 (poly-JES)
z/OS supports multiple JES2 subsystems operating concurrently, with one subsystem designated as the primary subsystem and all others defined as secondary subsystems. A secondary JES2 does not have the same capabilities as the primary JES2 and some restrictions apply to its use. Most notably, TSO/E users can only access the primary subsystem. The restrictions are necessary to maintain the isolation from the z/OS-JES2 production system, but the convenience for testing is a valuable function. Operation of multiple copies of JES2 is referred to as poly-JES. Secondary JES2s can be useful in testing a new release or installation-written exit routines. This isolation prevents potential disruption to the primary JES2 and base control program necessary for normal installation production work.
JES2 remote job entry (RJE)
The remote job entry (RJE) facility allows JES2 to define and use RJE workstations. An RJE workstation is a workstation that is connected to a member by means of data transmission facilities. The workstation can be a single I/O device or group of I/O devices or can include a processor such as a System/36, or System/390®. Generally, RJE workstations either include a programmable workstation (such as a personal computer) or a communication terminal (such as a 3770, 2780, or S/360) connected to the z/OS system through a telecommunication link. Such a link utilizes synchronous data link control (SDLC), or binary synchronous communication (BSC) for communicating between JES2 and remote devices. The remote device will be either a system network architecture (SNA) remote, that uses SDLC, or a BSC remote, that uses BSC. Figure 2 on page 8 shows a simple RJE configuration.
Chapter 2. Scope of control and configurations 7
Figure 2. Remote Job Entry Configuration
An RJE workstation is an extension of the local processing facility, except that work is sent across teleprocessing lines. Sending work across teleprocessing lines is convenient for an installation that needs to provide many data entry points at remote locations or route output to many diverse locations. The following illustrates the use of RJE in two familiar examples of daily business:
- In a large department store, many sales clerks need to print output on printers located at the many customer check-out desks throughout the store. Because the location of the building prevents direct connection to the z/OS system located in the central office located several hundred miles away, each printer can be defined to JES2 as a remote printer.
- Consider a clothing store chain in which the store managers at seven different stores all need to place orders, access inventory, and provide billing information, all the information for which is maintained on storage devices located in the computer center at the main office. An individual store's workstation is defined to JES2 as an SNA-attached remote to which the individual terminals are defined and as such become an extension of the JES2 configuration located at the main office. Figure 3 on page 9 presents a diagrammatic view of the RJE configuration as described in the preceding clothing store example.
8 z/OS: z/OS JES2 Introduction