Skip to content

Java conversion: CICS programs have several inbound COMMAREAs (first entry vs re-entry); count data-driven callers and model prefix layouts #3655

Closed

Description

@squid-protocol

Observation (from #3616's generated code). CardDemo's menu (COMEN01C) XCTLs through its option table to 11 screens, passing CARDDEMO-COMMAREA (160 bytes, COCOM01Y).

GalaxyIR.program_interfaces() (#3615) chooses each screen's COMMAREA from resolved callers only. For e.g. COACTUPC, the only resolved one is its own pseudo-conversational RETURN TRANSID ... COMMAREA(WS-COMMAREA), a 2000-byte area. So every case in the menu's dispatch carries // TODO: this site passes CARDDEMO-COMMAREA; COACTUPC receives WS-COMMAREA.

The real contract is richer:

  • a program can be entered with different COMMAREAs: the first time from the menu (160 bytes), on re-entry from itself (2000 bytes);
  • the programs tell them apart by EIBCALEN / CDEMO-PGM-CONTEXT;
  • the larger area typically starts with the shared record (the program MOVEs CARDDEMO-COMMAREA into it).

Ask.

  1. Count data-driven callers (navigation rows via value / table / moves) as sources when choosing the layout.
  2. Keep every inbound layout, with its sources: first entry vs re-entry.
  3. Detect a prefix relationship: layout A's fields are the leading fields of B, or B's first field is an X(n) that A's writers fill.
  4. Generate either overloads per inbound layout, or one DTO with the shared prefix plus the program's own tail, stating which.

This removes most of CardDemo's mapping TODOs honestly rather than by guessing. Evidence: the #3616 CardDemo output, dispatchCdemoMenuOptPgmnameL156.

Part of #3625 (refines #3615).

🤖 Generated with Claude Code

Activity

  1. added
    scope:frontier
    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

    era:4scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions