Modernization Hub

Intrapartition Queue

CICS
Enhanced Definition

An Intrapartition Queue (IPQ) in CICS is a type of **transient data queue** used for communication and data exchange *within a single CICS region*. It allows CICS programs to pass data to other programs, often asynchronously, or to defer processing of data to a later time within the same CICS environment.

Key Characteristics

    • Local Scope: Data stored in an IPQ is accessible only by programs running within the CICS region where the queue is defined. It does not facilitate inter-region or inter-system communication.
    • Sequential Access: Data is typically written to and read from an IPQ sequentially (FIFO - First-In, First-Out), though direct access by item number is also possible.
    • Persistent Storage: IPQs are stored on disk using a VSAM Entry-Sequenced Data Set (ESDS), meaning data persists across CICS region restarts, ensuring data integrity and recovery.
    • Triggering Capabilities: An IPQ can be configured with a trigger level. When the number of items in the queue reaches this level, a specified CICS transaction can be automatically initiated to process the queue's contents.
    • Recoverable: IPQ operations (writes and reads) can be defined as recoverable, participating in CICS syncpoints to ensure atomicity and data consistency, crucial for critical business data.

Use Cases

    • Asynchronous Processing: A common use is to offload non-critical or time-consuming tasks from an online transaction. The online transaction writes data to an IPQ, and a separate background transaction processes it later.
    • Workload Balancing within a Region: Distributing tasks among multiple instances of a transaction within the same CICS region, where each instance reads from the same queue to process work items.
    • Batch-like Processing in CICS: Collecting data from multiple online transactions throughout the day and then processing it in a single, triggered transaction at a specific time or when a certain volume is reached.
    • Error Handling and Retry Mechanisms: Storing details of failed transactions for later re-processing or analysis by a dedicated error-handling transaction, preventing immediate user impact.

Related Concepts

Intrapartition Queues are a specific type of Transient Data Queue (TDQ) in CICS, distinct from Extrapartition Queues which are used for communication with external files or systems. They are often used in conjunction with CICS Transactions and Programs for inter-program communication and task scheduling. Their recoverability ties into CICS's Syncpoint and Recovery Manager facilities, ensuring data integrity. They also relate to Temporary Storage Queues (TSQs), but TSQs are typically in-memory (or auxiliary storage for larger queues) and often non-recoverable, used for temporary data storage within a task or across tasks in a region, whereas IPQs are persistent and recoverable by default.

Best Practices:
  • Define Trigger Levels Carefully: Set trigger levels appropriately to balance immediate processing with efficient batching. Too low can lead to excessive transaction starts; too high can delay processing.
  • Monitor Queue Depths: Regularly monitor the number of items in IPQs using tools like CEMT or OMEGAMON to prevent overflow, identify backlogs, and ensure timely processing.
  • Implement Robust Error Handling: Design the processing transaction to handle errors gracefully, log issues, and potentially re-queue items for retry or move them to an error queue for manual intervention.
  • Optimize I/O for VSAM ESDS: Ensure the VSAM ESDS datasets used for IPQs are properly defined, sized, and placed on appropriate storage volumes to optimize I/O performance and minimize contention.
  • Consider Recoverability Needs: Only define IPQ operations as

Related Vendors

Macro 4

20 products

Applied Software

7 products

Trax Softworks

3 products

Related Categories

Administration

395 products

CICS

214 products

Encryption

41 products

Files and Datasets

168 products

Browse and Edit

64 products