Languages / COBOL · View extractor source

Mainframe & Batch · Structural Plugin

COBOL

Dedicated fixed-format and free-format COBOL structural extractor supporting enterprise batch and CICS programs.

Plugin
CobolPlugin (rgctl-lang-cobol)
Extensions
.cbl, .cob, .cpy
Aliases
cobol, cbl, cob
Discover
rgctl discover . -l cobol

Extracted symbols

ConstructSymbol TypeNotes
PROGRAM-ID. <name>SymbolType::ModuleProgram module container with full division line span.
<name> SECTION. / <name>.SymbolType::FunctionProcedure division sections and paragraphs qualified as Program::Paragraph.
01 <name>SymbolType::ClassTop-level WORKING-STORAGE, LOCAL-STORAGE, FILE, and LINKAGE records.
COPY <book> / EXEC SQL INCLUDE <book>SymbolType::ImportCopybook and DB2 SQLCA/DCLGEN include dependencies.

Extracted relations

ConstructRelation TypeNotes
PERFORM <para> [THRU <end>]RelationType::CallsIntra-program paragraph/section control-flow call edge.
CALL '<prog>' / CALL <var>RelationType::CallsStatic literal and dynamic variable inter-program calls.
EXEC CICS LINK / XCTL PROGRAM('<prog>')RelationType::CallsSingle-line and multi-line CICS transaction program transfers.

Related: Mainframe triad support · Tier 2 language support · Discovering and indexing