Repository navigation
Description
Problem
CardDemo's sign-on, COSGN00C, continues its own pseudo-conversation with a COMMAREA. Its generated façade takes none, so a deployment cannot carry that conversation past the first screen.
app/cbl/COSGN00C.cbl:64-67: LINKAGE01 DFHCOMMAREA. 05 LK-COMMAREA PIC X(01) OCCURS 1 TO 32767 TIMES DEPENDING ON EIBCALEN. This is an opaque area with no record of its own.:80:IF EIBCALEN = 0sends the screen. Otherwise it processes the key.:98-101:EXEC CICS RETURN TRANSID(CC00) COMMAREA(CARDDEMO-COMMAREA) LENGTH(...). CC00 is COSGN00C's own transaction, so the next task starts with that COMMAREA.
The generator writes these façades (port tests/equivalence/carddemo-signon/port/service/Cosgn00cService.java, the surface the generator writes today):
public void handleTransaction(String transid) // region.transaction(transid, null)
public void handleLink() // region.linked("COSGN00C", null)So only the cleared-screen entry (first-entry) can go through the deployed entry point. Every re-entry with the COMMAREA COSGN00C itself RETURNed (ENTER with credentials, PF3, invalid key, the I/O fault) has no façade that takes it. handleLink() has the same gap. COMEN01C's PF3 and COADM01C XCTL to COSGN00C with CARDDEMO-COMMAREA.
Found by
#4449 (PR #4455): the equivalence harness's new java-facade side. carddemo-signon: runTask 12/12 pass, java-facade 1/12. The other 11 are refused with handleTransaction of COSGN00C cannot take the COMMAREA (com.gitgalaxy.modernized.dto.contract.CarddemoCommarea) the task starts with.
Expected
A transaction's façade takes the COMMAREA that the estate's RETURN TRANSID flows into it carry. That includes a program's RETURN to its own transaction when its DFHCOMMAREA is opaque (ODO, PIC X OCCURS). The #4427 flow typing gives Object (or the flow's record) here. The opaque DFHCOMMAREA should not be read as "no COMMAREA". Apply the same rule to handleLink for the XCTLs into it.
Acceptance
- Generator regression test for the shape: an opaque ODO DFHCOMMAREA, plus a RETURN TRANSID(own) COMMAREA(record).
- carddemo-signon resurfaced with
tests/tools/port_surface.py equivalenceand re-proven withevidence.py prove carddemo-signon. All 12 java-facade scenarios pass. Its provenancestalemark (Equivalence harness: prove CICS ports through their deployed entry points (java-facade side) (#4449) #4455) is cleared.
Related: #4427, #4441, #4449 (part 2: layout conversion. COSGN00C's contract is bytes, OCCURS ... DEPENDING ON EIBCALEN, with no record of its own).
🤖 Generated with Claude Code
Activity
Re-prove the 19 committed CICS equivalence ports through their facades (
Re-prove the CICS equivalence ports on merged main, genapp-lgupdb01 i…
fix(det): re-prove LINK callers, lower det-sweep and facade ratchets (#…
fix(det): CICS facades run the program in the region (#4465) (#4490)
train: #4464 opaque DFHCOMMAREA + #3804 generated inputs (#4524)