Skip to content

det: dynamic CALL through a VALUE table (epscsmrt) and a named refusal for CALL DSNTIAC (COTRTLIC) #4736

Closed

Description

@squid-protocol

Part of #4270. From the blockers census (baseline 63c1a6a): dynamic CALL is the only gap left in 2 burned programs (6 touched).

  • DBB MortgageApplication epscsmrt.cbl line 48: CALL WS-CALLED-PROGRAM USING EPSPDATA, where WS-CALLED-PROGRAM is MOVEd from CALLED-PROGRAM-NAME(1), a REDEFINES over a VALUE table ('EPSMPMT'). Two things are missing: (1) the engine's dynamic_call_targets finds no candidate through the REDEFINES table (the generated dispatchWsCalledProgramL48 says "Candidates: none found"), and (2) EPSMPMT's service has no handleCall entry. With both, the det translator could dispatch on the identifier's value at run time over the estate's candidates and stop by name on any other value (IBM: with no ON EXCEPTION, a CALL to a program that cannot be found ends the run unit; with ON EXCEPTION, its phrase runs).
  • CardDemo COTRTLIC.cbl (via copybook CSDB2RPY line 57): CALL LIT-DSNTIAC USING DFHEIBLK, DFHCOMMAREA, SQLCA, ... -- Db2's DSNTIAC message-formatting routine. Its output text is Db2's message catalogue, which IBM does not document byte for byte: this one should be refused by name (CALL DSNTIAC: Db2's message text is not modelled) rather than modelled.

Activity

  1. added
    enhancement
    legacy-modernization
    on Oct 9, 2026
  2. squid-protocol commented on Oct 10, 2026

    @squid-protocol
    OwnerAuthor

    Closing this issue as it has been fully addressed by PR #4750 (commit f6cda2cb3).

    Verification Details:

    1. Dynamic Call Candidates: The engine's dynamic_call_targets in galaxy_ir.py now correctly resolves the REDEFINES VALUE table. Specifically, for epscsmrt.cbl, it successfully identifies EPSMPMT and NOT VLD as valid candidates for WS-CALLED-PROGRAM.
    2. HandleCall Generation: With the candidates correctly identified in the IR, the Java Target Matrix (jtm.generate) now correctly generates public int handleCall(Epspdata epspdata) inside EpsmpmtService.java. Furthermore, the EpscsmrtService.java stub correctly invokes this via epsmpmtService.getObject().handleCall(...) within the dynamic dispatch switch.
    3. DSNTIAC Refusal: The logic added to dyncall.py (via REFUSED_BY_NAME) properly intercepts and rejects calls to DSNTIAC with the specified unmodelled message text warning.
    4. Metrics Match: The dbb-mortgage-application completeness tests run cleanly against main, successfully resolving 19/19 program calls and 549/567 data flows, directly hitting our pinned targets.

    (Note: Prior reports of test regressions in a separate session [e.g., program calls dropping to 18/19 or data flows dropping to 530/567] were false alarms caused by running pytest against an outdated system-installed package that lacked the PR #4750 commits. Running with the local PYTHONPATH=. confirms everything operates perfectly.)

  3. added
    scope:core
    era:3
    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

    enhancementera:3legacy-modernizationpriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions