Languages / COBOL · View extractor source
Mainframe & Batch · Structural PluginCOBOL
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
| Construct | Symbol Type | Notes |
|---|---|---|
| PROGRAM-ID. <name> | SymbolType::Module | Program module container with full division line span. |
| <name> SECTION. / <name>. | SymbolType::Function | Procedure division sections and paragraphs qualified as Program::Paragraph. |
| 01 <name> | SymbolType::Class | Top-level WORKING-STORAGE, LOCAL-STORAGE, FILE, and LINKAGE records. |
| COPY <book> / EXEC SQL INCLUDE <book> | SymbolType::Import | Copybook and DB2 SQLCA/DCLGEN include dependencies. |
Extracted relations
| Construct | Relation Type | Notes |
|---|---|---|
| PERFORM <para> [THRU <end>] | RelationType::Calls | Intra-program paragraph/section control-flow call edge. |
| CALL '<prog>' / CALL <var> | RelationType::Calls | Static literal and dynamic variable inter-program calls. |
| EXEC CICS LINK / XCTL PROGRAM('<prog>') | RelationType::Calls | Single-line and multi-line CICS transaction program transfers. |
Related: Mainframe triad support · Tier 2 language support · Discovering and indexing