Modernization Hub

JES2 - Job Entry Subsystem 2

Enhanced Definition

JES2 (Job Entry Subsystem 2) is a core component of the IBM z/OS operating system responsible for managing the input, scheduling, execution, and output processing of batch jobs. It acts as an interface between users, application programs, and the z/OS operating system, ensuring efficient and controlled execution of workloads.

Key Characteristics

    • Job Management: JES2 manages the entire lifecycle of a batch job, from its submission into the system to its eventual termination and output disposition.
    • Spooling Services: It utilizes SPOOL (Simultaneous Peripheral Operations On-Line) datasets to temporarily store job input (JCL, data) and output (SYSOUT) before or after processing, decoupling job execution from I/O device speeds.
    • Workload Prioritization: JES2 works in conjunction with WLM (Workload Manager) to prioritize jobs based on their JOB CLASS, MSGCLASS, and other attributes, influencing their position in the execution queue.
    • Multi-access Spool (MAS): Multiple JES2 systems running on different z/OS images within a sysplex can share a common SPOOL environment, enabling load balancing, high availability, and simplified job management across the enterprise.
    • Command Interface: Provides a comprehensive set of operator commands ($D, $P, $S, $A) to display, purge, stop, and start jobs, initiators, devices, and other JES2 resources.
    • JCL Interpretation: It is responsible for reading and interpreting JCL (Job Control Language) statements, preparing the job for execution by the z/OS Job Scheduler.

Use Cases

    • Batch Job Submission: Users submit JCL scripts containing COBOL programs, utility jobs (e.g., IEBGENER, IDCAMS), or custom applications for execution via JES2.
    • Output Management: Directing job output (SYSOUT) to various destinations such as printers, TSO users, JES2 HOLD queues for later review, or SYSOUT datasets for archiving.
    • Job Scheduling and Control: Operators use JES2 commands to hold jobs, release them, change their execution priority, or cancel runaway jobs.
    • Resource Allocation: Managing the number of available initiators (job execution slots) and assigning jobs to specific initiators based on JOB CLASS and resource requirements.
    • Cross-System Workload Balancing: In a JES2 MAS environment, jobs can be submitted to one z/OS image and executed on another, optimizing resource utilization across the sysplex.

Related Concepts

JES2 is tightly integrated with z/OS and other mainframe components. It processes JCL statements, which define the job's steps and resource requirements, before passing control to the z/OS Job Scheduler. It interacts with WLM to ensure jobs receive appropriate system resources based on their importance. Users typically interact with JES2 indirectly through TSO/ISPF to submit jobs and view output, or directly via operator commands. JES2 also manages the interface with RACF or equivalent security systems to validate user permissions for job submission and output access.

Best Practices:
  • SPOOL Sizing and Monitoring: Regularly monitor SPOOL dataset utilization and ensure adequate sizing to prevent SPOOL full conditions, which can halt job processing and impact system stability.
  • JCL Standards: Enforce clear and consistent JCL coding standards to improve readability, maintainability, and reduce errors in job submissions.
  • Output Management Policies: Implement robust SYSOUT management policies, including MSGCLASS assignments, retention periods, and automated archiving or deletion to prevent SPOOL bloat.
  • Initiator Management: Optimize the number and JOB CLASS assignments of initiators to match workload demands, ensuring critical jobs are processed efficiently without monopolizing resources.
  • JES2 MAS Configuration: For MAS environments, design the SPOOL configuration and JOB CLASS routing carefully to achieve optimal workload distribution and high availability.
  • Security: Restrict access to JES2 operator commands and sensitive SYSOUT datasets using RACF profiles to prevent unauthorized job manipulation or data exposure.

Related Vendors

IBM

646 products

Trax Softworks

3 products

Related Categories

Automation

222 products

Operating System

154 products

CASE/Code Generation

19 products

Browse and Edit

64 products