Skip to content

CICS: FORMATTIME RESP, ASKTIME NOHANDLE, READQ TS LENGTH(LENGTH OF), RECEIVE MAP ASIS (Fixes #4737) - #4748

Merged
squid-protocol merged 1 commit into
mainfrom
feat/4737-cics-options
Oct 9, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/4737-cics-options

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

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's FORMATTIME 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 reading NOHANDLE directly 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 the SYNCPOINT NOHANDLE gap.)
  • 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 treat LENGTH OF as a data area, and the stub emitted MOVE .. TO LENGTH OF).

No ggcics.c change: ASKTIME/FORMATTIME/READQ-LENGTH are COBOL generated by tests/tools/equivalence_cics.py and 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 check vs origin/main: 79/79 ports unchanged (no translation moved). proof_sweep.py --det-only --skip-db2: "sweep: as expected". pr_gates --ratchets 7/7, --fast 5/5. Unit tests for the translator, CicsTask, the stub, the spec entries.

Census (translation only, burned + census corpora, base d207e35)

  • Programs translated whole: 100 -> 104 of 179 (non-burned 11 -> 12): EDUCHAN (non-burned, 26/27 -> 27/27), COPAUS2C (55/56 -> 56/56), lgastat1 (29/30 -> 30/30), lgtestc1 (128/130 -> 130/130).
  • Gap rows gone: FORMATTIME RESP, ASKTIME NOHANDLE, RECEIVE MAP ASIS, "not a data area: Length of", SYNCPOINT NOHANDLE.
  • Next: RECEIVE MAP ... TERMINAL ASIS is now RECEIVE 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

…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)
@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

@squid-protocol
squid-protocol marked this pull request as ready for review October 9, 2026 04:52
@squid-protocol
squid-protocol merged commit 76c7099 into main Oct 9, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the feat/4737-cics-options branch October 9, 2026 04:52
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.

CICS: four options that are the only gap in a program (FORMATTIME RESP, ASKTIME NOHANDLE, RECEIVE MAP ASIS, READQ TS LENGTH(LENGTH OF))

2 participants