Skip to content

det: a LINKed program that XCTLs with its DFHCOMMAREA -- the XCTL target's writes never reach the LINK caller (IBM: settle copy vs same storage) #4816

Closed

Description

@squid-protocol

Found while fixing #4806 (a LINK / XCTL COMMAREA through a DTO lost bytes the DTO cannot decode; that fix passes the bytes beside the DTO).

Gap. Inside a LINK level, when the LINKed program XCTLs, CicsTask.link runs the XCTL target on the XCTL's own COMMAREA (a copy, now with its bytes as linkArea, #4806). Whatever that target writes never reaches the LINK caller's COMMAREA: the caller gets back only the bytes the first LINKed program left (linkAreaBack is that program's).

IBM. EXEC CICS LINK passes the caller's COMMAREA by address. EXEC CICS XCTL: "CICS ensures that any COMMAREA is addressable by the program that receives it, by copying the COMMAREA ... if necessary". When the XCTLing program passes the DFHCOMMAREA it was LINKed with (the caller's own storage, which is not released by the XCTL), the target may address the caller's storage directly, and the caller would see its writes after the LINK returns. Which of the two (copy vs same storage) IBM does here must be settled against the reference (register entry), then either modelled or refused by name. Never assumed.

Where. CicsTask.link hop loop (cobol_to_java_transaction_forge.py), the det XCTL emission (det/cics.py). No burned-estate case is known to hit it yet (CBSA's front ends XCTL at level 1, where the XCTL ends the task in the harness).

Done when. A LINKed det program that XCTLs with its DFHCOMMAREA either gives the caller the target's writes as IBM does, or is refused by name; a cobc regression like tests/cobol_mainframe/test_link_commarea_bytes_4806.py.

Part of #4270.

Activity

  1. added
    bug
    legacy-modernization
    on Oct 9, 2026
  2. squid-protocol commented on Oct 12, 2026

    @squid-protocol
    OwnerAuthor

    Sibling gaps from PR #4955's class sweep filed: #4956 (model-port DTO XCTL), #4957 (SET ADDRESS OF / pointer alias). Siblings: #4956, #4957

  3. squid-protocol commented on Oct 13, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #5060 (from the review of PR #5058).

  4. added
    scope:core
    era:2
    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:2legacy-modernizationpriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions