You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Java conversion: CICS programs have several inbound COMMAREAs (first entry vs re-entry); count data-driven callers and model prefix layouts #3655
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.
Count data-driven callers (navigation rows via value / table / moves) as sources when choosing the layout.
Keep every inbound layout, with its sources: first entry vs re-entry.
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.
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.
Activity
CICS programs read their COMMAREA in segments: model the unpack, coun…
Answer key: reference-modification spans, a new ledger field (#3649, …