Skip to content

det: name source defects (text past column 72 in EXEC SQL, ISPF screen captures, undeclared items) instead of 'no such item' / SystemExit #4735

Closed

Description

@squid-protocol

Part of #4270. Found ranking the blockers census (cics_census.py blockers --all-programs, baseline 63c1a6a).

NexusBank's NEND-DAY.cbl (non-burned, census) is one gap from whole: line 408: EXEC HV-SO-IM: no such item. It is not a translator lookup bug: the source line 411 runs to column 78 (... - :HV-SO-IM | PORTO, past column 72). Fixed-form COBOL (and the Db2 precompiler / coprocessor, which honour the same margins) read columns 8-72 only, so the statement really names :HV-SO-IM and loses its comma -- the Db2 forge generated exactly that (SALDO_DISPONIBILE - :hvSoIm DATA_ULT_MOVIMENTO = ...). Lines 308, 309 and 316 lose a trailing comma the same way (column 73).

Ask: name the source defect, as #4590 does for a literal cut open at column 72 -- a statement (EXEC SQL here) with non-blank text past column 72 that changes its meaning becomes a hole source text past column 72 (or the program is refused by name), instead of no such item (and instead of a generated repository method built from the cut text). The program cannot become whole honestly; this keeps the ranking truthful.

Same family in the census, also source defects rather than translator gaps (counts only):

  • cobol-db2-refatorado PROGMAIN: ExprError: the PROCEDURE DIVISION does not parse at line 28 -- a comment line with its * in column 8 instead of 7.
  • cobol-db2-refatorado ALTERAR / EXCLUIR: DB2-CODFUN: no such item, SQLCA: no such item, TRATA-SQLCODE: no such paragraph -- items and paragraphs the repository never declares (no COPY / INCLUDE brings them).
  • cobol-db2-cursor, cobol_db2_stringsearch: generation failed: SystemExit: 0 -- each repository's one .cbl is an ISPF edit-panel screen capture (File Edit Edit_Settings Menu ... header, line-number prefixes), so the engine finds no PROGRAM-ID and the refactor controller exits "No executable COBOL files found". A named refusal ("not a COBOL program: no PROGRAM-ID") would read better than SystemExit.

Activity

  1. added
    bug
    legacy-modernization
    priority: low
    on Oct 9, 2026
  2. added
    scope:frontier
    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

    buglegacy-modernizationpriority: lowscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions