Skip to content

Option table for compiler options not yet modelled (ZONEDATA/INVDATA, CODEPAGE, SSRANGE/NUMCHECK, OPTIMIZE, TRUNC(OPT), ARITH(EXTEND)...) (#4704) #4706

Closed

Description

@squid-protocol

Follow-up to #4704 (slice 1 landed the estate options file, the one resolver and the evidence fingerprint). Policy: #4702 ("IBM is the reference; GnuCOBOL is the instrument").

Slice 1 models only INTDATE, TRUNC, ARITH, NUMPROC (the options equivalence_common already honoured). This issue is the option table for the rest: one row per option, in oracle_assumptions.md or a new compile_options.md.

For each option answer: (1) does it change results; (2) can cobc honour it (flag, config or wrapper); (3) what does the det port do; (4) otherwise it is refused by name or a declared difference (#4702).

Compiler: ZONEDATA (6.1+) / INVDATA (6.4+) (C11: invalid zoned/packed data), CODEPAGE, NSYMBOL / DBCS, DISPSIGN, AFP / FLOAT, SSRANGE, NUMCHECK / INITCHECK (abend vs silent), OPTIMIZE (C14 divide-by-zero shapes), TRUNC(OPT), ARITH(EXTEND), INTDATE(LILIAN).

Found by slice 1 (needs a decision here): CBSA's build PARM (etc/install/base/buildjcl/CICS.jcl:7) is TRUNC(OPT); GnuCOBOL has no TRUNC(OPT), so CBSA programs without their own TRUNC(STD) card (CUSTCTRL, DELACC, INQACC among the cases) are proven under TRUNC(STD) as a declared difference (applied_value in tests/equivalence/estate_options/cics-banking-sample-application-cbsa.json; EffectiveOptions.deviations()). Decide: model TRUNC(OPT) (what does IBM define for out-of-range binary under OPT? "undefined"), or keep refusing, and show the difference in the evidence report.

Acceptance: every option above is modelled, honoured by cobc, refused by name, or a declared difference, and the estate files' installation defaults / PARM values for it stop being merely recorded.

Activity

  1. added
    enhancement
    testing
    legacy-modernization
    priority: high
    on Oct 8, 2026
  2. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    PR #5088 (merged) adds the option table (register C5, compiler_options.OPTION_TABLE): ZONEDATA/INVDATA/NSYMBOL(DBCS)/DISPSIGN(SEP)/FLOAT(NATIVE) refused by name; SSRANGE/NUMCHECK/CODEPAGE-mismatch declared; OPTIMIZE/AFP/INITCHECK recorded with no effect. Leaving this open: PR #5088 took four provisional choices that need an owner decision (SSRANGE/NUMCHECK/CODEPAGE declared vs refused; INVDATA refused wholesale; CODEPAGE 1140/37 honoured; FLOAT default HEX), and the TRUNC(OPT) decision asked for in this issue (model vs keep as a declared difference) is still open. ARITH(EXTEND)/INTDATE(LILIAN) remain refused via COBC_OPTIONS.

  3. added
    scope:sweep
    era:2
    on Oct 16, 2026
  4. added
    needs:docker
    on Oct 18, 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:2legacy-modernizationneeds:dockerpriority: highscope:sweeptesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions