Repository navigation
IDCAMS step model: DEFINE ALTERNATEINDEX / PATH and BLDINDEX (Part of #8881) - #8945
Merged
Merged
Conversation
…ad in alternate-key order (Part of #8881) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
3 tasks done
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8881
Checklist: partial [c:7865474a] -- Java runtime and GnuCOBOL BDB alternate-key cross-check
What changed
Slice 1 of the oracle model for an IDCAMS alternate-index job (the three steps: DEFINE ALTERNATEINDEX, DEFINE PATH, BLDINDEX).
det/idcams_model.pynow models:DEFINE ALTERNATEINDEX(aliasAIX): RELATE, KEYS, RECORDSIZE, UNIQUEKEY / NONUNIQUEKEY, UPGRADE;DEFINE PATHwith PATHENTRY;BLDINDEX INDATASET / OUTDATASET.RECORDSIZE(40,40)), andDATA/INDEXcomponent names are accepted on a cluster and an AIX.IF LASTCC/SET MAXCC.tests/cobol_mainframe/test_idcams_model_8881.pyruns the three steps (KSDS and ESDS bases, UNIQUEKEY with and without duplicates, record-size fit, REPRO through the path) and a refusal table. One row oftest_idcams_model_8880.pyis split because component operands beyond NAME are now refused by a more specific message.docs/language_status/register/F6.mdrecords the cited sections (SC23-6846-60, from memory, not re-read against the box copy), the ASSUMED items and the residual risk.Evidence level: modelled and unit-tested on authored decks. Nothing is executed-equivalent; the oracle is this model, not z/OS.
Class / Sibling gaps
Class: an IDCAMS command whose effect depends on catalog entries other than a plain cluster (AIX, path) must either be modelled with a stated IBM outcome or refused by name. Same-mechanism siblings fixed here: DELETE of an AIX, a path or a cluster that has an AIX, REPRO output onto a path, an AIX or an indexed base, and a path read before BLDINDEX are all refused by name. Sibling gaps not modelled: PATHENTRY over a cluster, NOUPGRADE and upgrade on writes to the base, BLDINDEX by INFILE / OUTFILE, DATA / INDEX components as catalog entries (names are checked only), and the program-side alternate-key lookup (#4894).
Remaining slices
cobcBDB alternate-key cross-check of the path order (cobcis not installed on this box).Facts checked
Gates
pr_gates.py --fast9/9,--ratchets9 pass,audit_check.pyclean (ruff, mypy, dead-key, doc-refs), pinned ruff format clean on the changed files, IDCAMS tests 211 passed.Lessons for agents
-continuations.dead_key_auditflags a string key read once throughdict.get("...")when it is written through a table; share a module constant.🤖 Generated with Claude Code