Skip to content

scanner: parse CICS resource macro tables (DFHFCT / DFHPCT / DFHPPT / DFHDCT / DFHTST) into the resource map #5120

Closed

Description

@squid-protocol

What: parse CICS resource macro tables -- DFHFCT (files), DFHPCT (transactions), DFHPPT (programs), DFHDCT (TD queues, incl. ATI triggers), DFHTST (TS) -- assembled in older estates before resource definition online (the CSD). Today the scanner only reads the CSD (0 references to DFHFCT/DFHPCT/DFHPPT), so an era-1 estate has no resource map at all. Produce the same resource facts the CSD path produces, with provenance (table, macro line).

Acceptance: macro-table and CSD resources merge into one resource map (conflicts named); tests from IBM's macro syntax (TYPE=DATASET / TYPE=ENTRY ...); a fixture estate with tables only, and one with both.

Context (owner-approved 2026-10-14): our CICS corpus is almost all eras 3-4 (CardDemo, CBSA, GenApp are modern demos) on top of well-modelled old COBOL semantics. Real estates are layered: 1980s programs LINK 1990s ones that call 2010s Db2 code in one region. Era model used here (approximate; the scanner should cite evidence, not dates):

Era ~When CICS COBOL Tells
0 ~1969-80 macro level (DFHPC/DFHFC, CSA/TCA) ANS 68 DFHxx macro calls, no EXEC CICS
1 ~1978-88 CICS/VS 1.x command level OS/VS COBOL (74) BLL cells + SERVICE RELOAD, HANDLE CONDITION/AID, DL/I, FCT/PCT/PPT/DCT macro tables
2 ~1988-96 CICS/MVS 2.x, CICS/ESA 3-4 VS COBOL II / COBOL 85 ADDRESS OF / SET ADDRESS, RESP/RESP2, EXEC SQL, CSD (RDO), DPL
3 ~1996-2005 CICS TS 1-2 COBOL for MVS/OS390, LE MQ, EXCI, 3270 bridge, web
4 2005+ CICS TS 3+ Enterprise COBOL channels/containers, SOAP/JSON, async, named counters

Order: after the current CI work and CICS blocker work (owner). Siblings: the five "era" issues filed together.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    legacy-modernization
    on Oct 14, 2026
  2. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Siblings (era work, filed together 2026-10-14): #5117 era tags, #5118 estate-crucible era profiles, #5119 BLL cells / SERVICE RELOAD, #5120 resource macro tables, #5121 macro-level / Assembler refusals. Queued after the CI and CICS blocker work (owner).

    🤖 Generated with Claude Code

  3. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #5154 (remaining CICS resource-definition sources, from the review of PR #5153).

  4. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met by #5153: macro tables (FCT/PCT/PPT/DCT/TST) parse into the same resource rows as the CSD with provenance (source, macro_table, line); resource_map()/resource_conflicts() merge both into one map and name conflicts; tests from IBM macro syntax; fixtures tables_only and tables_and_csd. Remaining DFHSIT/SRT/JCT/TCT/MCT gaps are listed as siblings in the PR, not part of this acceptance.

  5. added
    scope:frontier
    era:1
    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

    enhancementera:1legacy-modernizationpriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions