Skip to content

CICS: READ GTEQ / DELETE GENERIC on a file named at run time (Part of #4771) - #4886

Merged
squid-protocol merged 4 commits into
mainfrom
feat/4771-read-gteq-runtime-file
Oct 11, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
feat/4771-read-gteq-runtime-file

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4771 (zECS file-name templates).

What. READ ... GTEQ and DELETE ... GENERIC on a FILE named by a data item at run time (zECS ZF-FCT, ZC##FILE).

  • READ GTEQ on the full key: the key length is the one of the store the name picks at run time; a name with no store is a Hole then (as for every other command on such a file); a RIDFLD shorter than that key is refused then (X6).
  • DELETE GENERIC (IBM EXEC CICS DELETE): every record whose key starts with RIDFLD's first KEYLENGTH bytes, NOTFND RESP2 80 when none. Both runtimes: CicsTask.delete over repeated DetCics.Store.search/remove (det port) and GGCDELT with GG-FLAGS GENERIC (stub); both translators (det/cics.py, equivalence_cics.py); spec entry in commands/files.py.
  • Register X22 (ASSUMED / REFUSED by name): ASSUMED no other task's locks (IBM LOCKED / RECORDBUSY), KSDS stores only (RESP2 22). REFUSED: KEYLENGTH at or above the full key (IBM RESP2 25), zero (IBM: "unpredictable"), below zero (42), a non-constant KEYLENGTH, NUMREC, a RIDFLD shorter than the generic key.
  • From the WIP: kept the translator/runtime/stub design (checked against IBM's DELETE page); dropped an unchecked java= text from the spec's refusal, tightened X22.

Measured (zecs, --no-census, translation; origin/main before #4877 vs this branch): translated 890 -> 893 of 939; holes ZECS000 6 -> 5, ZECS003 7 -> 5; ZECS001 32, ECS001 4, ZECSPLT 0 unchanged; 4 of 5 compile (ZECS001 does not: duplicate FILLER names, unrelated). No program becomes whole: ZECS000 still needs WEB PARSE x2 (+ WEB client, merged in #4877 since); ZECS003 WEB PARSE and SEND. In ZECS003 the generated project stores no file for ZF-FCT, so the READ/DELETE hole at run time (named, same as its other file commands).
Not proven: no case runs zECS's file (the estate must state which table's ZCnnFILE); runtime tests compare the stub and CicsTask only.

Gates. pr_gates --fast 5/5; --ratchets 7/7 (0 skipped); det_port check 104/104 unchanged (parity warning EPSCSMRT pre-existing); targeted tests 583 passed, 2 skipped (EQUIVALENCE_E2E).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

@squid-protocol squid-protocol added enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: low UI tweaks, documentation, and minor optimizations labels Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: low UI tweaks, documentation, and minor optimizations 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