Skip to content

Epic: JCL execution — step flow, COND/IF return codes, DD binding, restart/checkpoint #4891

Open

Description

@squid-protocol

Gap: JCL is scanned (job / step flow, DD names, resolved DSNs are mainframe fact channels) but never executed. A migrated batch job needs: step sequencing, COND= / IF-THEN-ELSE on return codes, PARM passing, DD-to-file binding (incl. concatenations, temporary datasets, SYSOUT), restart from a step, and checkpoint/restart semantics.

Wanted: a JCL execution model that runs the translated programs and the utility runtime (sibling epic) as one job, with condition-code logic proven against IBM's JCL reference; restart/checkpoint behaviour stated or refused by name.

Related: #4508 (JCL harness), #4514 parts 1/4 (data, batch), the batch-utilities epic.

Research basis: 2026-10-11 gap research (runtime inventory, language coverage, issue landscape), saved in the orchestrator handoffs (research-2026-10-11-*). Measure-first: the first child issue of this epic is a reach measurement (how often the class appears and in which constructs), then a design note, then slices that each make programs translate or prove. IBM is the reference, GnuCOBOL / our models the instrument; what IBM leaves open is ASSUMED or REFUSED by name (register).

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    epic
    legacy-modernization
    priority: high
    on Oct 11, 2026
  2. added
    scope:frontier
    needs:crucible
    needs:docker
    on Oct 16, 2026
  3. squid-protocol commented on Nov 2, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4891-20261102T1249Z (host nyx) ended without a PR. #4891 blocked: no IBM JCL Reference text available (ibm.com landing page too large for fetch). Needs direct topic-page URLs for EXEC COND / JOB COND / IF-THEN-ELSE-ENDIF before expected semantics can be written. Nothing pushed; handoff handoffs/4891-jcl-level.md. Not requeued.

  4. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Unblocked (2026-11-03). The earlier run stopped because it had no IBM JCL Reference text. ibm.com answers curl with a 403, the PDF included, but WebFetch on the individual topic pages returns them (HTTP 200). Base: https://www.ibm.com/docs/en/SSLTBW_3.1.0/com.ibm.zos.v3r1.ieab600/

    Sourced, with verbatim quotes kept outside the repo in the handoffs dir (4891-ibm-jcl-sources.md):

    • EXEC COND: parent page ?topic=statement-cond-parameter, iea3b6_Subparameter_definition64.htm, iea3b6_Syntax86.htm, iea3b6_Summary_of_COND_parameters.htm, condcau.htm and its error page. Covers bypass when code op RC is true, tests of all previous steps when no stepname is given, the limit of 8 tests (7 with EVEN/ONLY), a test on a bypassed step evaluating false, EVEN/ONLY interpreted first, and the abend rules (122/222 and scheduling failures override EVEN/ONLY).
    • IF/THEN/ELSE/ENDIF: relexkey.htm, relationexp.htm, iea3b6_Priorities_of_operators.htm, iea3b6_Logical_operators.htm, iea3b6_NOT_operator.htm, ifuse.htm, ifcau.htm, iea3b6_THEN_and_ELSE_clauses.htm. Covers bare RC (the highest RC of the steps that executed so far, starting at 0), a stepname test on a step that didn't run evaluating false, ABEND/ABENDCC/RUN, NOT over comparison over AND/OR (AND and OR equal), nesting up to 15 levels, and that an IF is evaluated once.

    Not found: refuse by name in register F4 or mark ASSUMED: JOB-statement COND (timing against EXEC COND, and whether it overrides it), COND on a step inside THEN/ELSE, the job's final completion code, restart/checkpoint.
    Settle in the register: relationexp.htm makes a stepname test on a step that didn't run false, but ¬stepname.RUN is documented as true for such a step. Also, mixing & and | without parentheses (IBM gives no order: refuse it).

    The plan in the handoff stands: slice 1 is the fixture and scenarios, slice 2 the step-flow evaluator, then a burned case (CardDemo DEFGDGD / TRANEXTR). Requeued.

  5. 2 remaining items

  6. added
    scope:core
    and removed
    scope:frontier
    on Nov 20, 2026
  7. squid-protocol commented on Nov 20, 2026

    @squid-protocol
    OwnerAuthor

    Owner 2026-11-20: promoted to scope:core. CardDemo (burned estate) needs it: its translated Spring Batch jobs (batch forge) have not yet been checked against the IBM-written JCL answer key (tests/equivalence/jcl/carddemo, 34 answers). Slice 1 queued.

  8. squid-protocol commented on Nov 21, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4891-20261121T0157Z (host nyx) ended without a PR. no PR: evaluator already on main (#7670); requeued against remaining slices

  9. squid-protocol commented on Nov 21, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4891-20261121T0227Z (host nyx) ended without a PR. PR #8821 already merged 02:46Z before this fix run ended; no review needed

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

    enhancementepiclegacy-modernizationneeds:crucibleneeds:dockerpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions