Modernization Hub

Conversational Mode

Interactive Processing
Enhanced Definition

In the mainframe context, **Conversational Mode** refers to an interactive processing technique where a program maintains its state and resources (like memory, open files, database locks) across multiple interactions with a terminal user. The program effectively "converses" with the user, waiting for input after sending output, and resuming execution from where it left off. In the context of mainframe interactive systems like CICS and IMS DC, **Conversational Mode** refers to an application design where a program retains control and user-specific data across multiple interactions (screen displays and user inputs) within a single logical transaction. The program maintains its state and resources (e.g., storage, open files, database locks) between successive terminal I/O operations, effectively holding the conversation open.

Key Characteristics

    • State Retention: The program's working storage, file pointers, and other execution context are preserved between user interactions (e.g., screen sends and receives).
    • Resource Intensive: Holding resources (memory, database locks, control blocks) for the duration of the user's "think time" can consume significant system resources.
    • Dedicated Task: A dedicated task (e.g., a CICS task or IMS dependent region) remains active and allocated to the user throughout the conversation.
    • Synchronous Interaction: The program typically waits synchronously for user input after presenting a screen, blocking further processing until input is received.
    • Simpler Program Logic (sometimes): From a programmer's perspective, maintaining state can sometimes simplify logic compared to pseudo-conversational approaches, as data doesn't need to be explicitly saved and restored.
    • Potential for Deadlocks: Holding locks for extended periods increases the risk of database deadlocks or resource contention.

Use Cases

    • Legacy Interactive Applications: Older CICS or IMS applications that were designed before pseudo-conversational techniques became standard or were deemed too complex for the specific application.
    • Complex Data Entry: Scenarios where a user needs to navigate through a series of interconnected screens, and the application logic heavily relies on state maintained across these screens.
    • Debugging: During development or testing, a conversational mode might be temporarily used to simplify debugging of interactive flows, as the program state is easily inspectable.
    • Specific IMS Transactions: Certain IMS Message Processing Programs (MPPs) can be designed to run conversationally, maintaining state within the IMS control region.

Related Concepts

Conversational mode is fundamentally contrasted with Pseudo-Conversational Mode, which is the highly recommended and predominant approach for interactive applications on z/OS, especially in CICS. While conversational programs hold resources, pseudo-conversational programs terminate and restart for each user interaction, passing state via terminal I/O areas (like COMMAREA in CICS) or temporary storage. This distinction is crucial for understanding transaction processing efficiency and scalability in environments like CICS and IMS.

Best Practices:
  • Avoid when possible: For new development or modernizing existing applications, always prioritize pseudo-conversational design to maximize system throughput and resource utilization.
  • Minimize Conversation Length: If conversational mode is unavoidable, design the application to keep conversations as short as possible, releasing resources quickly.
  • Limit Resource Holdings: Avoid holding database locks or other critical system resources for the entire duration of a user conversation.
  • Monitor Resource Usage: Closely monitor system resources (CPU, memory, database locks) consumed by conversational transactions to identify bottlenecks and potential performance issues.
  • Educate Developers: Ensure developers understand the performance implications of conversational programming and the benefits of pseudo-conversational techniques.

Related Vendors

ABA

3 products

ASE

3 products

IBM

646 products

UTS Global

1 product

Trax Softworks

3 products

Related Categories

Databases

211 products

Transactions

29 products

Operating System

154 products

Browse and Edit

64 products