Skip to content

Generator: COSGN00C's facade takes no COMMAREA, but its pseudo-conversation RETURNs one to itself (opaque ODO DFHCOMMAREA) #4464

Closed

Description

@squid-protocol

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: LINKAGE 01 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 = 0 sends 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

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

  1. added
    bug
    legacy-modernization
    priority: high
    on Oct 5, 2026
  2. added
    scope:core
    era:4
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugera:4legacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions