Skip to content

det_port: a CICS case's CALLed subprograms are not translated, so DBB EPSCSMRT cannot be cased (EPSMPMT stub; C6 holes) #4803

Closed

Description

@squid-protocol

Refused by name from the #4270 non-CBSA whole-program cases (DBB MortgageApplication EPSCSMRT, evidence L1).

EPSCSMRT translates whole (13/13) but cannot be cased: the only thing it does is CALL WS-CALLED-PROGRAM USING EPSPDATA (the det translator resolves it to EPSMPMT from the table's VALUE) and copy EPSMPMT's answer back into the COMMAREA. So the case needs EPSMPMT on the Java side, and there is none:

  1. det_port.py run translates a CICS case's main program and its programs (LINK targets) only. A case's subprograms (CALLed programs) are compiled on the COBOL side (SUB<NAME>.cbl) but never det-translated, so the Java side calls the generator's EpsmpmtService.handleCall stub, which does nothing. Measured: every error-path scenario differs (EPSPCOM-ERRMSG 'PRINCIPLE AMOUNT IS NEGATIVE' vs '', RETCODE 8 vs 0). Listing EPSMPMT under programs as well fails the COBOL link (duplicate symbol).
  2. Even ported, EPSMPMT leaves two holes (line 125: (1 + C) ** N floating-point exponentiation, oracle_assumptions.md C6; line 144: FUNCTION ANNUITY in dead code): mortgage-mpmt is unproven on purpose (det_sweep_baseline.json, COBOL oracle/translator: floating point and compiler options (COMP-1/2 hex float, NUMPROC, ARITH(EXTEND), TRUNC(OPT), INTDATE, COMP-5 byte order) #4271). EPSCSMRT's error paths (principal <= 0, over the maximum, rate <= 0) never reach them, but its success path (RETCODE 0, the payment) does.

Ask: let det_port.py translate a case's subprograms too (a CALLed program, handleCall), so EPSCSMRT's validation paths can be proven, and decide whether a port with holes the scenarios do not reach may be proven (it should say so in the record). Until then EPSCSMRT stays L1. The same gap keeps EPSCMORT's ENTER path (A100's CALLs of EPSNBRVL) out of mortgage-cmort.

Draft case (scenarios: principal zero / over the maximum / rate zero / negative; COMMAREA EPSMTCOM; subprograms: epsmpmt.cbl; compiler Enterprise COBOL 6.1 as mortgage-mpmt) is in the handoff note handoffs/handoff-4270-noncbsa-whole-cases.md.

Activity

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

    @squid-protocol
    OwnerAuthor

    Churn review (2026-10-12): a worker re-checked #4803 after #4868. Items 1-3 are done (subprogram translation, mortgage-csmrt case, owner rule on callee holes). Item 4, EPSCMORT's ENTER path, is blocked by #4271: the ENTER path always LINKs EPSCSMRT, which CALLs EPSMPMT, and EPSMPMT still has the C6 float-exponent and FUNCTION ANNUITY holes. Leaving this open until #4271 lands. Then remove the mortgage-csmrt baseline entry and add the cmort ENTER scenarios with EPSCSMRT and EPSMPMT in programs/subprograms.

  3. squid-protocol commented on Oct 15, 2026

    @squid-protocol
    OwnerAuthor

    Churn review (2026-10-15): acceptance met. Items 1-3 landed in #4868, and item 4 (EPSCMORT's ENTER path) in #5188: 8 ENTER scenarios through EPSCSMRT/EPSMPMT, equal on both legs. Under the callee-holes rule, mortgage-cmort and mortgage-csmrt stay unproven while EPSMPMT has its C6 holes. That remaining work is #4271's: when it lands, drop both det_sweep_baseline.json entries. Closing.

  4. added
    tier:score
    scope:core
    era:2
    on Oct 15, 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:coretestingtier:score

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions