Modernization Hub

BCP - Basic Control Program

Enhanced Definition

BCP, or Basic Control Program, is the core component of the z/OS operating system, responsible for managing system resources, executing programs, and controlling the overall operation of the mainframe. It provides the fundamental services that enable applications to run, users to interact with the system, and the operating system to function efficiently.

Key Characteristics

    • Resource Management: Manages critical system resources including CPU cycles, real and virtual storage, and I/O devices, ensuring their efficient allocation and deallocation.
    • Task Management: Handles the creation, scheduling, dispatching, execution, and termination of tasks (TCBs - Task Control Blocks) and SRBs (Service Request Blocks) within the system.
    • Supervisor Call (SVC) Processing: Provides the primary interface for user programs to request operating system services, such as I/O operations, storage allocation, or program loading, via SVC instructions.
    • Interrupt Handling: Manages various types of interrupts (e.g., I/O, program, external, machine check) to maintain system stability, respond to events, and ensure proper program execution flow.
    • Virtual Storage Management: Implements and manages the virtual storage architecture, allowing programs to address large memory spaces independently of physical memory availability.
    • Multiprogramming/Multitasking: Facilitates the concurrent execution of multiple programs or tasks, maximizing the utilization of the mainframe's processing power and I/O capabilities.

Use Cases

    • Program Execution: When a COBOL application is submitted via JCL, the BCP allocates the necessary resources, loads the program into virtual storage, and schedules its execution.
    • I/O Operations: A CICS transaction accessing a DB2 database relies on the BCP to manage the physical input/output operations to disk storage devices.
    • System Service Requests: An application requiring dynamic memory allocation or inter-program communication will issue an SVC, which is then processed by the BCP.
    • Error Recovery: In the event of a program abend (abnormal termination), the BCP's error handling routines are invoked to diagnose the issue, generate dumps, and attempt recovery or graceful termination.

Related Concepts

The BCP is the foundational layer of z/OS, upon which all other components and subsystems are built. It works in conjunction with the Supervisor, which is an integral part of the BCP responsible for handling interrupts and SVCs. Other z/OS components like JES (Job Entry Subsystem), WLM (Workload Manager), and SMS (Storage Management Subsystem) interact extensively with the BCP's services to manage jobs, optimize workloads, and control data storage. During IPL (Initial Program Load), the BCP is the first major component loaded, bringing the entire operating system to life.

Best Practices:
  • System Monitoring: Utilize tools like RMF (Resource Measurement Facility) and SMF (System Management Facilities) to monitor BCP activity, identify performance bottlenecks, and ensure efficient resource utilization.
  • PTF/APAR Application: Regularly apply Program Temporary Fixes (PTFs) and Authorized Program Analysis Reports (APARs) to BCP components to maintain system stability, security, and access to the latest enhancements.
  • Configuration Tuning: Carefully review and tune BCP-related system parameters (e.g., virtual storage limits, dispatching priorities, I/O configuration) to optimize overall system performance for specific workloads.
  • Security Hardening: Implement robust security controls, especially for programs running in supervisor state or key 0, to prevent unauthorized access or manipulation of BCP services and critical system resources.

Related Products

Related Vendors

IBM

646 products

Related Categories

Operating System

154 products