Skip to content

det: HANDLE CONDITION ERROR(label) is accepted but never taken (condition() ignores ERROR) #4502

Closed

Description

@squid-protocol

Problem

Found while working on #4413. The det translator accepts EXEC CICS HANDLE CONDITION ERROR(label) (det/cics.py: "HANDLE CONDITION": None, every option a condition) and records it as handlers.put("ERROR", ...). But the port's condition() (det/program.py _cics_parts) only looks up the raised condition's own name, then takes the default action. So a condition with no handler of its own abends the det port, where CICS goes to the ERROR label.

IBM, EXEC CICS HANDLE CONDITION: "if the default action for such a condition terminates the task abnormally, and the condition ERROR has been specified, the action for ERROR is taken." The stub side already does this (ggcics.c GGCCOND, ERRCOND), and cics-crucible hc-perform-range length-trap exercises it. It is a silent divergence: the translation is accepted, not refused.

Acceptance

Likely belongs with #4414 (IGNORE CONDITION touches the same condition()).

Activity

  1. added
    bug
    legacy-modernization
    priority: high
    on Oct 5, 2026
  2. added
    scope:core
    era:1
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugera:1legacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions