Skip to content

CICS: SEND MAP / RECEIVE MAP for a map its mapset does not hold is abend ABM0; CBSA BNK1CCS translates whole (Part of #4270) - #4766

Merged
squid-protocol merged 5 commits into
mainfrom
feat/4270-send-map-not-in-mapset
Oct 9, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
feat/4270-send-map-not-in-mapset

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Part of #4270.

Follows #4763 (landed): it refused BNK1CCS's SEND MAP('BNK1CCM') by name; this models what CICS does.

What CICS does (IBM)

  • SEND MAP / RECEIVE MAP, MAPSET: "If this option is not specified, the name given in the MAP option is assumed to be that of the mapset" (SEND MAP, RECEIVE MAP). So SEND MAP('BNK1CCM') looks for map BNK1CCM in mapset BNK1CCM, which holds only BNK1CC.
  • Neither command page lists a condition for a map that is not found (SEND MAP: INVMPSZ 38 without RESP2, INVREQ 16 RESP2 200 / a map without fields; RECEIVE MAP: EOC, EODS, INVMPSZ, INVPARTN, INVREQ, MAPFAIL 36, PARTNFAIL, RDATT, UNEXPIN; no RESP2 beyond 200).
  • The abend code reference does: ABM0 "The map specified for a basic mapping support (BMS) request could not be located"; system action "The transaction is abnormally terminated with a CICS transaction dump". A mapset that is not defined at all is PGMIDERR (SET SYSTEM: "a program, map set, or partition set that is not defined") -- not modelled.

Change

  • Spec: new Abend entry (Command.abends) on SEND MAP and RECEIVE MAP: ABM0; register X31.
  • Translator (Cics.map_not_found): a constant MAP not held by its (constant or defaulted) mapset, in an estate whose BMS defines that mapset, emits EXEC CICS ABEND's lines with task.abendMapNotFound (HANDLE ABEND exit, else terminated). No RESP/HANDLE CONDITION handling: no condition exists.
  • Both runtimes: CicsTask.abendMapNotFound (ABEND event cause system); the stub's GGCSMAP / GGCRECV with the run-stated $GGCICS_MAPSETS (the cics-crucible runner takes it from the case's maps; unstated mapset = not checked) and the generated COBOL's exit/GOBACK after the call.
  • docs: X31 in oracle_assumptions.md (ASSUMED: ABM0 is the abend for a map missing from an existing mapset; RESP does not turn it into a condition).

Proofs

Survey (CBSA, translation only, --compile)

Whole programs 25 -> 26 of 31 (compiles 27 -> 27). BNK1CCS 572/573 (1 hole) -> 573/573 (0 holes). SEND MAP over the burned corpora: translated whole 7 -> 8. Remaining CBSA gaps: the POINTER-in-COMMAREA hole (3 programs), a missing copybook (CEEIGZCT), file/repository and CEE calls.

Cross-repo

Merge cics-crucible#17 and this PR in either order; no tag, no pin bump (the new case is off-pin: equivalence_env.py --crucible-dir ... --unpinned).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

squid-protocol and others added 3 commits October 9, 2026 03:39
…et (#4270)

SEND/RECEIVE MAP: strip trailing blanks of a literal map/mapset name (IBM: names are blank-padded to 8).
A map name that is a mapset of the estate but no map of it (CBSA BNK1CCS: MAP('BNK1CCM'), MAPSET defaults
to the MAP name, the map is BNK1CC) is refused by name, not as 'no generated screen'.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
…s abend ABM0 (#4270, X31)

IBM CICS TS abend ABM0: the map specified for a BMS request could not be located; the
transaction is abnormally terminated. Neither command lists a condition for it, so RESP and
HANDLE CONDITION do not see it; a HANDLE ABEND exit does. Both runtimes (CicsTask
abendMapNotFound, the stub's GGCSMAP / GGCRECV with $GGCICS_MAPSETS), the spec's new
Abend entry, the X31 register. CBSA's BNK1CCS (SEND MAP('BNK1CCM'), no MAPSET) translates whole.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
@squid-protocol squid-protocol added enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Keep X30 (named counters) and X31 (SEND/RECEIVE MAP ABM0); re-render cics_spec_status.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
@squid-protocol
squid-protocol marked this pull request as ready for review October 9, 2026 10:08
@squid-protocol
squid-protocol merged commit 2b53e91 into main Oct 9, 2026
40 checks passed
@squid-protocol
squid-protocol deleted the feat/4270-send-map-not-in-mapset branch October 9, 2026 10:08
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant