Repository navigation
CICS: FORMATTIME RESP, ASKTIME NOHANDLE, READQ TS LENGTH(LENGTH OF), RECEIVE MAP ASIS (Fixes #4737) - #4748
Merged
Conversation
…RECEIVE MAP ASIS (Part of #4270) Four options that were each the only gap in one program (EDUCHAN, COPAUS2C, lgastat1, lgtestc1). Register X28. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
| def receive_map(self, opts: dict, ind: str) -> list[str]: | ||
| # #4737 (X28): ASIS -- IBM: "lowercase characters in the 3270 input data stream are not translated to uppercase". | ||
| # The operator's input reaches the program as typed (CicsTask.receive), which is what ASIS asks for | ||
| as_is = "ASIS" in opts # noqa: F841 (the option is honoured by doing nothing: no translation exists to switch off) |
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 #4737. Part of #4270.
What
Four options that were each the only gap in one program (register X28, IBM CICS TS 6.x pages cited there):
FORMATTIME ... RESP/RESP2(EDUCHAN): INVREQ RESP2 1, "The ABSTIME value is less than zero or not in packed-decimal format"; nothing formatted, EIBRESP/RESP/RESP2 written (CicsTask.formattimeCheck, the stub's COBOL). Refused by name: the INVREQ's handling without RESP/RESP2 (a HANDLE CONDITION label, the default abend AEIP) for an ABSTIME below zero (CicsTask.formatDate/formatTime, the stub'sFORMATTIME ABSTIME < 0 NO RESP: not modelled) -- doing it would move 33 committed ports and no corpus program can reach it; STRINGFORMAT (RESP2 2) stays refused as an option; "not packed decimal" is the declared storage's business (the port reads the field by its declared usage).ASKTIME NOHANDLE(COPAUS2C): the real cause was the parser readingNOHANDLEdirectly after the verb as a second verb word (ASKTIME NOHANDLE), plus ABSTIME being required. IBM: ASKTIME "updates the date (EIBDATE) and ... time-of-day clock (EIBTIME) fields in the EIB" and lists no condition, so NOHANDLE suppresses nothing; ABSTIME is optional, EIB fields stay as dispatched (X4). (This also clears theSYNCPOINT NOHANDLEgap.)RECEIVE MAP ... ASIS(lgtestc1): IBM, "lowercase characters in the 3270 input data stream are not translated to uppercase". Both runtimes already deliver the operator's input as typed, so ASIS is accepted and changes nothing. Neither runtime models the upper-case translation of a non-ASIS RECEIVE on a UCTRAN(YES) terminal (X26); registered, no case reads it.READQ TS ... LENGTH(LENGTH OF area)(lgastat1): the most INTO takes (LENGERR truncation as before); CICS's returned length goes to a temporary, so neither side stores it back (the translator tried to treatLENGTH OFas a data area, and the stub emittedMOVE .. TO LENGTH OF).No
ggcics.cchange: ASKTIME/FORMATTIME/READQ-LENGTH are COBOL generated bytests/tools/equivalence_cics.pyand RECEIVE MAP's ASIS needs no C.Proof (against the case branch,
--unpinned; no tag, no pin bump)New cics-crucible case
condition-handling/hc-resp-options(companion PR below), 3 scenarios hand-traced from IBM's pages (formattime,readq-length,asis): cobol-stub 3/3; java-ported (det port, HCOPT 53/53 statements, 0 holes) 3/3.det_port.py checkvs origin/main: 79/79 ports unchanged (no translation moved).proof_sweep.py --det-only --skip-db2: "sweep: as expected".pr_gates --ratchets7/7,--fast5/5. Unit tests for the translator, CicsTask, the stub, the spec entries.Census (translation only, burned + census corpora, base d207e35)
RECEIVE MAP ... TERMINAL ASISis nowRECEIVE MAP TERMINAL(TERMINAL option, 2 programs); DELETEQ TS; QUERY COUNTER.Cross-repo
Companion: squid-protocol/cics-crucible#14 (the case, no SPEC change). Merge it first, then a crucible release + pin bump (not done; the pin is untouched, so CI's cics-crucible job does not see the case until then).
🤖 Generated with Claude Code
https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D