Skip to content

IDCAMS alternate index: path order cross-checked on GnuCOBOL BDB alternate keys (Part of #8881) - #8952

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8881-20261122T0017Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8881-20261122T0017Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8881 (Graveyard Shift 2, #8878).

Checklist: partial [c:7865474a] -- Java runtime for the IDCAMS step (#8880's Java item comes first: no Idcams Java exists) and alt-index commands in it; job harness wiring

What

The oracle half of the item: the step model's path order (alternate key, then the base's primary-key order for equal keys) is now run against GnuCOBOL's Berkeley DB alternate keys. tests/cobol_mainframe/test_idcams_aix_oracle_8881.py generates a COBOL reader (ALTERNATE RECORD KEY ... WITH DUPLICATES, load in primary-key order, START + READ NEXT) and requires the same records in the same order as idcams_model.path_records after the nightly-shaped DEFINE AIX / DEFINE PATH / BLDINDEX decks.

6 inputs (distinct, interleaved duplicates, one record, all equal, descending, digits and blanks) x 4 key layouts = 24 GnuCOBOL runs, 0 differences. The model half (24 cases, plus an order definition stated independently of the model's sort) runs always; the GnuCOBOL half runs under EQUIVALENCE_E2E=1.

docs/language_status/register/F6.md records the evidence level and what is not covered.

Facts checked

  • Ran the file with EQUIVALENCE_E2E=1 against gitgalaxy-gnucobol:3: 49 passed. Without it: 25 pass, 24 skipped.
  • First run failed on my own deck (SYSIN is read to column 72; a longer line was cut) and on the loader (GnuCOBOL answers 02 on a WRITE whose alternate key repeats). Both fixed in the test; no engine change.
  • python tests/tools/audit_check.py: all clear.

Not covered (stated in F6)

ESDS base (GnuCOBOL has no ESDS alternate keys: arrival-order rule stays an assumption), UNIQUEKEY over duplicates (refused, not executed), BLDINDEX condition code and alternate record layout (model only). Oracle is GnuCOBOL, not z/OS.

Class sweep

Class: a modelled IDCAMS behaviour with no independent executor.
Sibling gaps (each needed by burned CardDemo TRANIDX / TRANBKP jobs, so core): Java runtime for an IDCAMS step (#8880); alt-index commands in it; harness step in equivalence_job.py; ESDS alternate-key order has no oracle.

Remaining slices

  1. cobolrt/batch/Idcams.java + differential test vs the model (REPRO / DELETE / DEFINE CLUSTER).
  2. Alt-index commands in it, checked against this test's inputs.
  3. Harness wiring (equivalence_job.py) and the TRANIDX job case.

Cross-repo

None.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 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 22, 2026 00:29
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 00:37
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit afbeca1 into main Nov 22, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8881-20261122T0017Z branch November 22, 2026 01: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