Skip to content

Forge JclConditions reads COND=ONLY, stepname.RUN and ABENDCC=code: 10 of #8821's 28 step differences closed (Part of #8886) - #9190

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8886-idc1645i
Nov 24, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8886-idc1645i

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8886.

Stacked on #9185 (the branch carries its one commit; it only touches the IDCAMS files, so the two are independent).

What

#8821 ran the level fixture's 42 IBM-written answers through what BatchForge generates: 21 scenarios agreed, 21 differed on 28 steps. The forge's JclConditions Java now reads three shapes it ignored:

  • COND=ONLY (or (test,ONLY)): a Spring Batch job ends at an abend, so no step runs after one and an ONLY step always bypasses (4 steps).
  • stepname.RUN, with or without = TRUE|FALSE: true when the step ran (recorded a return code); the = value is read and dropped (4 steps, .RUN = FALSE and NOT .RUN no longer inverted).
  • stepname.ABENDCC = code and ABEND = TRUE: false (no abended step continues the job); the operator and operand are read, so the rest of the expression parses (2 steps).

Result: 11 of 42 scenarios differ on 18 steps (was 21 on 28). KNOWN_DIFFERENCES keeps only the abend flush (an abend ends the job, so the steps IBM runs after one never start: a design limit of the Spring Batch tasklet, stated in the forge). The test still fails on a new difference and on a listed one that stops reproducing; nothing is loosened.

Class / Sibling gaps

Class: the forged job's JCL step-flow behaviour against IBM-written answers, per fixture. Members: COND=ONLY / .RUN / .ABENDCC= (closed here); CardDemo 34 EXEC COND answers (#8808: all agree); the abend flush, 18 steps in 11 scenarios (EVEN / ONLY / IF ABEND / ABENDCC after an abend): not closable by a parser fix, needs the job to survive an abend (a different mechanism: a step that records an abend and lets the launcher continue), listed in KNOWN_DIFFERENCES. stepname.ABENDCC = code with an actual abend is the same flush. Not run (still siblings from #8821): ifelse 18 answers, proc 221 resolve answers, dataflow, gdg, restart.

Tests

tests/cobol_mainframe/test_jcl_forged_job_fixture.py (the 42-answer comparison, JDK needed): list shrunk, count pinned (42, 11, 18). Also passing: test_jcl_forged_job_carddemo.py, test_batch_jobs.py, test_forged_job_nightly_8886.py (16 passed). Gates: see below.

Remaining slices

  1. Let a forged job survive an abend (records an abend code, continues for EVEN / ONLY / IF ABEND), closing the last 18 steps.
  2. Forged Spring Batch jobs vs the JCL level fixture: 42 IBM-written answers, 21 agree, 28 step differences named (Part of #4891) #8821's siblings: ifelse 18, proc 221, dataflow, gdg, restart.
  3. CREASTMT STEP040 through the forged job (STEP010 chain RC=16, F4); one end-to-end forged nightly run.

Checklist: partial [c:1b7f6936] -- the 10 parser-fixable differences are closed; the 18 abend-flush steps remain (the job must survive an abend)

Lessons for agents

None new.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits November 24, 2026 05:38
…he model and the Java twin (Part of #8886)

Still refused: IBM keeps the first pointer and states no condition code (register F4).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…0 of #8821's 28 step differences closed (Part of #8886)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 12:08
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 12:09
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit e7514ee into main Nov 24, 2026
90 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8886-idc1645i branch November 24, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant