Skip to content

Engine: .dcl DB2 DCLGEN members are not scanned (no language claims the extension) #3365

Closed

Description

@squid-protocol

Problem

No language in the registry claims the .dcl extension, so carddemo's DB2 DCLGEN members are never scanned:

  • app/app-transaction-type-db2/dcl/DCLTRTYP.dcl
  • app/app-transaction-type-db2/dcl/DCLTRCAT.dcl
  • app/app-authorization-ims-db2-mq/dcl/AUTHFRDS.dcl

Each one is DCLGEN output generated with LANGUAGE(COBOL): an EXEC SQL DECLARE <table> TABLE (...) END-EXEC. block followed by the COBOL 01 DCL... host-variable record. COBOL programs pull them in with EXEC SQL INCLUDE DCLTRTYP END-EXEC.

Because .dcl isn't claimed, the DB2 sql_table_data channel from #3349 (#3344) never sees the three tables these members declare (CARDDEMO.TRANSACTION_TYPE, CARDDEMO.TRANSACTION_TYPE_CATEGORY and CARDDEMO.AUTHFRDS), and neither do the DCLGEN host-variable records in record_data. The answer key's SQL_TABLE_EXTS leaves .dcl out too.

Fix

Have a language claim .dcl. The likely owner is cobol, since this is COBOL DCLGEN output. Check the corpus contents and any extension conflicts across the registry first. Then show that sql_table_data rows appear for carddemo, and extend the answer key's reader to match.

Activity

  1. added
    legacy-modernization
    on Sep 23, 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

    legacy-modernization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions