Repository navigation
Fix #4008: CICS harness models XCTL RESP/RESP2 and LENGTH - #4020
Merged
Merged
Conversation
squid-protocol
force-pushed
the
fix/4008-xctl-resp
branch
2 times, most recently
from
September 29, 2026 19:39
a303edc to
78519d9
Compare
Contributor
squid-protocol
force-pushed
the
fix/4008-xctl-resp
branch
from
September 29, 2026 19:58
78519d9 to
e208ecc
Compare
squid-protocol
marked this pull request as ready for review
September 29, 2026 20:05
squid-protocol
force-pushed
the
fix/4008-xctl-resp
branch
from
September 29, 2026 20:05
e208ecc to
09056d1
Compare
- Stub: XCTL fails with LENGERR RESP2 11 for a LENGTH outside 0-32763 and PGMIDERR RESP2 1 for a program the CSD does not define; nothing is then transferred. A successful XCTL copies LENGTH bytes from the named item, past its end if need be. - Translator: after GGCXCTL the program GOBACKs only on NORMAL; a failure goes through the condition handling (RESP, HANDLE CONDITION, default). - Runner: the XCTL event carries RESP2 where the command is not NORMAL. - CicsTask: xctl(program, commarea, length) returns the condition and records LENGTH, RESP and RESP2; a failed XCTL does not end the program. cobol-stub: ca-xctl-versions/length-range now passes (all 3 pass). Part of #3989. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
squid-protocol
force-pushed
the
fix/4008-xctl-resp
branch
from
September 29, 2026 20:32
09056d1 to
3770757
Compare
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.
Fixes #4008
Part of #3989 (phase 3, lane B)
What
A failed XCTL (IBM, EXEC CICS XCTL):
programs.cfgcomes from CICS harness: LINK with by-reference COMMAREA and program levels (unlocks through 18 cobol-stub cells) #4004, and program autoinstall is off.GGCXCTLonly on NORMAL. A failure goes through the CICS harness: condition machinery (HANDLE/IGNORE CONDITION, RESP/NOHANDLE, HANDLE ABEND, PUSH/POP HANDLE) #4003 condition handling: RESP, HANDLE CONDITION, or the default abend.Copy semantics: a successful XCTL copies LENGTH bytes from the named item, past the item's end when LENGTH is longer. In
long-overread, 80 bytes are taken from the 10-byte WS-V1.Events:
area/resp/resp2.Java (generated
CicsTask):xctl(program, commarea, Integer length)returns the condition. The event records LENGTH, RESP and RESP2.xctl(program, commarea)stands for a whole-record COMMAREA: its LENGTH is null, and the Java comparison treats that as unmodelled.test_cics_endpointsis updated for theStringreturn type.Cells (side × status)
ca-xctl-versions/length-rangenow passes (XCTL LENGTH(32767): LENGERR RESP2 11, thenXCTL FAILED RESP=22 RESP2=11), so all three ca-xctl-versions scenarios pass.Tests
cc: LENGERR 11, PGMIDERR 1, and an 80-byte copy from a shorter item.CicsTaskunder javac: a failed XCTL leaves the program running, and a successful one runs the target with EIBCALEN = LENGTH.EQUIVALENCE_E2E=1fixture passes, and CardDemo account view (whose XCTL has no CSD there, so every program counts as defined) passes 9/9 events.Audits: ruff, mypy and dead-key show no new findings. Touched files are formatted.
🤖 Generated with Claude Code