Skip to content

COBOL engine: a continued nonnumeric literal in a VALUE clause is stored with the raw continuation line instead of the joined literal #4391

Closed

Description

@squid-protocol

Found by the referee panel (#4377). In CardDemo app/cbl/CBSTM03A.CBL, eleven 88-level items carry an HTML literal continued onto a second line (fixed format: the literal runs to column 72, the next line has - in column 7 and resumes after a quote):

157:             88  HTML-L08 VALUE '<table  align="center" frame="box" styl
158:      -             'e="width:70%; font:12px Segoe UI,sans-serif;">'.

record_data.value_literal for HTML-L08 (engine ca152eb92b9b) is

'<table  align="center" frame="box" styl\n      -             '

that is, the first line's fragment plus the raw continuation line up to its opening quote. The value should be the joined literal, <table align="center" frame="box" style="width:70%; font:12px Segoe UI,sans-serif;">. tree-sitter-cobol-enterprise also keeps the raw text, so it cannot referee this. The answer key is wrong too, in a different way: it stores STYL\n (see draft B).

Scope: 11 items, all in CBSTM03A. The other three keyed CICS estates have no continued VALUE literal, and estate-crucible has none either.

Acceptance: the value of a continued alphanumeric / national literal is the concatenation per the Enterprise COBOL continuation rules: the first line's characters through column 72, then the continuation line's characters after its opening quote. Pin HTML-L08 / HTML-L10 in a unit test, and add a horror to estate-crucible.

Found by the #4377 referee panel (first pass, PR #4384; engine ca152eb92b9b).

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    on Oct 5, 2026
  2. added a commit that references this issue on Oct 5, 2026
  3. squid-protocol commented on Oct 5, 2026

    @squid-protocol
    OwnerAuthor

    Fixed by train D, #4398 (merged).

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

    bugcore-enginelegacy-modernizationpriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions