Skip to content

IDCAMS DELETE ALTERNATEINDEX of an absent entry; TRANBKP deck restored to the JCL (Part of #8885) - #9080

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8885-20261123T0152Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8885-20261123T0152Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8885 (Part of #8878, Graveyard Shift 2). Slice 2 after #9072.

The nightly case (tests/equivalence/jobs/carddemo-nightly.json) landed in #9072 with the TRANBKP deck missing its DELETE ... ALTERNATEINDEX line, because the IDCAMS model refused that parameter by name. This PR closes that deviation: the deck is now the JCL's own. The nightly is still not proven over its last step (TRANIDX is refused by name, unchanged here).

What changed

  • gitgalaxy/tools/cobol_to_java/det/idcams_model.py and cobolrt/job/Idcams.java (model and Java runtime, same rule): DELETE name ALTERNATEINDEX (alias AIX) of an entry that is not in the catalog is code 8 (entry not found), as for a cluster. The same keyword over an entry that IS in the catalog is refused by name ("an entry in the catalog (only an absent one is modelled)"): its dependents (paths) are not modelled and IBM's outcome for a type mismatch is not stated.
  • tests/cobol_mainframe/test_idcams_aix_refusals_8881.py: a refusal row for the present-entry case (model and Java, same words; the source-scan guard needs it).
  • tests/cobol_mainframe/test_idcams_java_8881.py: the absent-entry deck (both spellings) joins the model-vs-Java agreement scenario.
  • Case data: carddemo-tranbkp.idc restored to the JCL (DELETE KSDS CLUSTER, DELETE AIX ALTERNATEINDEX, each followed by IF MAXCC LE 08 THEN SET MAXCC = 0); the case notes updated.

Proof, per job and step (equivalence.py run carddemo-nightly, local, after this change)

Job Step Result Condition code (COBOL / Java)
POSTTRAN carddemo-posttran equal: ACCTFILE 50/50, TCATBALF 100/100, TRANFILE 264/264, DALYREJS 41/41 4 / 4
INTCALC carddemo-intcalc equal: ACCTFILE 50/50, TRANSACT 50/50 0 / 0
TRANBKP tranbkp-idcams equal (model vs Java), now with the AIX delete: REPRO 264 records, DELETE KSDS 0, DELETE AIX 8 then MAXCC 0, DEFINE 0 / 0
COMBTRAN carddemo-sort-combtran equal: SORTOUT 314/314 0 / 0
COMBTRAN combtran-step10-idcams equal (model vs Java) 0 / 0
CREASTMT carddemo-sort-creastmt equal: SORTOUT 314/314 0 / 0
CREASTMT creastmt-step020, carddemo-cbstm03a not reached: IBM ends STEP010 (ICE043A, register F4), COND=(0,NE) n/a
TRANIDX carddemo-tranidx IDCAMS model only, refused by name (BLDINDEX busiest alternate key 5055 bytes over RECORDSIZE 350, IBM's outcome not stated) n/a

Verdict: NOT proven over 7 of 9 steps (6 equal, 2 not reached by IBM's own stop, 1 refused). The det sweep was not run (no translator change).

What the chain claims

GnuCOBOL plus the models (IDCAMS det model, DFSORT lowering), not z/OS. Each step is proven as its own case and a step reads the COBOL side's output of the step before, the same bytes the Java side is given. The wiring (which step feeds which, the BKUP / SYSTRAN / COMBINED generations, the KSDS) is written from the case, not read from the JCL (Graveyard Shift 3).

Gates

  • Pinned ruff format on the changed .py: clean. audit_check.py: all clear.
  • pr_gates --fast: 8/9 pass; the affected-tests lane failed on test_call_compare_4778 (hard-coded /home/joe/gitgalaxy/repo/.mainframe_corpora/example-health-apis path, not on this box; also failed in CardDemo nightly job case: POSTTRAN..COMBTRAN..CREASTMT proven, TRANIDX refused by name (Part of #8885) #9072) and on test_cobolrt_rules (a new Java helper method not in the rule catalogue: fixed by inlining it, rerun green).
  • 206 IDCAMS / cobolrt-rule tests pass after the fix. --ratchets not rerun: no ratchet input changed (no engine, golden or ledger file).

Class / Sibling gaps

Class: IDCAMS DELETE type keywords (CLUSTER, ALTERNATEINDEX/AIX, PATH, GDG, NONVSAM, ...) the model refuses or models partially. Handled here: ALTERNATEINDEX/AIX over an absent entry. Siblings: DELETE ... ALTERNATEINDEX of a present entry (refused: dependents and mismatch outcome not stated); PATH, GDG, NONVSAM, PURGE-with-retention (refused by name, no CardDemo deck uses them); TRANIDX over this chain's data (BLDINDEX overflow outcome needs an IBM citation); carddemo-sort-creastmt has no L5 mutation run.

Remaining slices

  • TRANIDX over this chain's data: the BLDINDEX overflow outcome (IBM citation, then a model and Java rule, or a stated stop).
  • det_mutation.py run for carddemo-sort-creastmt.

Checklist: partial [c:69f0e953] -- steps 1-6 proven equal with per-step records and condition codes above; TRANIDX refused by the model; det sweep not run

Lessons for agents

  • A new helper method in cobolrt/**/*.java must be listed in the rule catalogue (test_cobolrt_rules) or inlined; pr_gates --fast catches it only in the affected-tests lane.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 22, 2026 21:01
…RANBKP deck restored to the JCL (Part of #8885)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…every method) (Part of #8885)

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 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 23, 2026 02:12
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 02:14
@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 a8dfc90 into main Nov 23, 2026
103 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8885-20261123T0152Z branch November 23, 2026 02:39
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