Skip to content

equivalence: LGTESTP4's add moves a space-filled CA-BROKERID / CA-PAYMENT to binary (GnuCOBOL 931773840, det port 0; C11) #4652

Closed

Description

@squid-protocol

Part of #4270 (found by the GenApp front-end / test-transaction cases).

What. LGTESTP4 (GenApp's commercial-policy test transaction), option 2 (add), sets no CA-BROKERID / CA-PAYMENT (LGTESTP1-3 MOVE 0 to them). COMM-AREA's CA-REQUEST-SPECIFIC is INITIALIZEd to spaces (INITIALIZE skips the REDEFINES CA-POLICY-REQUEST), so both fields hold spaces when LINK LGAPOL01 -> LGAPDB01 moves them to binary host variables (MOVE CA-BROKERID TO DB2-BROKERID-INT) and INSERTs POLICY.

  • GnuCOBOL 3.1.2 (-std=ibm, the oracle): BROKERID 931773840, PAYMENT 707773840.
  • The det port: 0, 0.
  • IBM Enterprise COBOL: a zoned item of EBCDIC spaces (X'40') has digit nibbles 0, so most likely 0 -- but IBM documents no result for non-digit data in a numeric DISPLAY item (oracle_assumptions.md C11).

Now. genapp-lgtestp4 leaves its successful add out (C11's "inputs kept out of the cases"; here the data is the program's own, not an input); the failing adds (customer unknown -> '70', INSERT POLICY faulted -> '90') are proven. WHEN '2''s success path (New Commercial Policy Inserted) is therefore not covered.

To settle. A z/OS run (#4050), or an oracle model of a zoned item with non-digit bytes (refuse the MOVE by name on both sides, as X6/X23 do, so the task is judged up to it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglegacy-modernizationpriority: mediumscope:coretesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions