Repository navigation
Fix #4005: CICS harness models terminal RECEIVE of unformatted input - #4012
Merged
Merged
Conversation
- Translator: RECEIVE INTO [LENGTH|FLENGTH] [MAXLENGTH] becomes a GGCRECT stub call. LENGTH is in-out (GG-LEN, new in the GG-CICS block); an omitted LENGTH is LENGTH OF INTO. SET, NOTRUNCATE, BUFFER, ... are refused by name. - Stub: returns the step's text (SPEC 5, cleared screen), once per task. Longer input is truncated with LENGERR and LENGTH set to the full length (IBM, EXEC CICS RECEIVE). A second RECEIVE is a driver error. - Runner: RECEIVE events on both sides; the COBOL driver hands the input to whichever program of the task reads it first. - CicsTask: withTerminalInput / receiveText(maxLength) / Received, recording the RECEIVE event. cobol-stub: ca-xctl-versions short-upgrade and long-overread now pass; length-range fails on XCTL LENGERR (#4008). 16 java cells move from unsupported to fail (the unported runTask records no events). Part of #3989. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EC8FWfn3aPmsUPnRgKNVup
Contributor
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 #4005
Part of #3989 (phase 3, lane B)
What
The CICS harness now models a terminal
RECEIVE INTO LENGTH: unformatted input, which a step'stextgives (SPEC §5, typed on a cleared screen).tests/tools/equivalence_cics.py):RECEIVE INTO [LENGTH|FLENGTH] [MAXLENGTH|MAXFLENGTH]becomes aGGCRECTstub call.LENGTHis in-out. On the way in it is the most INTO takes (MAXLENGTH overrides it). On the way out it is the data's length. It goes throughGG-LEN, a new field at the end of theGG-CICSblock.LENGTH OF INTO.SET,NOTRUNCATE,BUFFERand the session/partition options are refused by name.ggcics.c):DRIVER-ERROR.RECEIVEevent (resp,length,data) on both sides.CicsTask):withTerminalInput(text),receiveText(maxLength)returningReceived(resp, length, data), andterminalInputRead().receiveTextrecords the RECEIVE event and has the same LENGERR semantics.Cells (side × status)
ca-xctl-versions/short-upgradeandlong-overreadnow pass.length-rangenow fails at XCTL LENGERR RESP2 11, which is CICS harness: XCTL RESP/RESP2 and LENGTH semantics #4008.runTaskis still the unported stub (Logic porting loop: bring-your-own LLM, human approval, proven by the equivalence harness #3753), which is expected.Tests
tests/cics_crucible/test_cics_runtimes.py(new):ggcics.cwithccand drivesGGCRECT: read once, truncation + LENGERR, no input, already read.CicsTaskwithjavacand drivesreceiveText.EQUIVALENCE_E2E=1runner fixture passes.carddemo-acctview) still passes 9/9 events.Generated output
CicsTask.javagains the RECEIVE API. That file is generated only for CICS programs with a transaction. This change is intended, and java-compile compiles it. No goldens change.Audits: ruff, mypy and dead-key show no new findings. Touched files are ruff-formatted. No new regexes.
🤖 Generated with Claude Code