g1joshi/agent-skills/cobol
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert COBOL programming assistance covering enterprise batch processing, divisions, copybooks, and data formatting. Use when maintaining legacy banking, government, or mainframe systems.
Install
npx vskill@latest install g1joshi/agent-skills/cobolSKILL.md
COBOL
COBOL runs 70% of the world's business transactions. Modern COBOL (GnuCOBOL 3.2 / IBM Enterprise COBOL) supports JSON, XML, and Object-Oriented features.
When to Use
- Mainframe Core Banking & Insurance Systems: Maintaining and extending mission-critical legacy financial ledger engines.
- High-Volume Fixed-Point Financial Calculations: Executing exact decimal math without floating-point rounding errors.
- Batch Processing on IBM z/OS: Processing millions of nightly accounting records, payroll statements, and clearinghouse transactions.
- Modernizing Legacy Mainframes via APIs: Wrapping legacy COBOL subprograms with REST/gRPC interfaces via IBM z/OS Connect.
Quick Start
Core Concepts
Four Classical Divisions Architecture
Every COBOL program is structured strictly across four standard functional divisions:
Picture Clauses (PIC) for Fixed-Point Arithmetic
Eliminates floating-point rounding discrepancies by defining exact digit layouts and implied decimals (V):
Structured Paragraphs & PERFORM Loops
Modern COBOL (COBOL 2002/2014) utilizes structured control statements:
Common Patterns
Sequential File Processing Loop
Problem: Processing large fixed-width batch files without loading entire file into memory.
Solution: Use structured READ loop with AT END flag:
Best Practices
Do:
- Use
COMP-3(Packed Decimal) for Financial Numbers: Maximize mathematical computation performance on IBM Z enterprise hardware. - Adopt Modern Free-Format COBOL: Eliminate column 7-72 restrictions when supported by modern compilers (GnuCOBOL, IBM Enterprise COBOL).
- Use Explicit Scope Terminators: Always close control blocks with
END-IF,END-PERFORM, andEND-READrather than terminal periods. - Validate Input Data with
NUMERICTests: RunIF WS-INPUT-VAL IS NUMERICto prevent data exception abends (0C7).
Don't:
- Use
GO TOstatements: Eliminate unstructuredGO TOjumps; use modern structuredPERFORMparagraphs. - Rely on terminal periods for logic flow: Stray periods terminate all nested
IFconditions prematurely. - Neglect binary fields initialization: Always initialize working-storage variables with
VALUEclauses to prevent garbage data.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
FILE STATUS 35: File not found | Physical file path not mapped in JCL or environment. | Verify ASSIGN TO clause and dataset DD statement. | |
DATA DIVISION syntax error in Area A | Division, Section, or 01 level headers not starting in columns 8-11. | Align level-01 and division headers in Area A (columns 8-11). | |
FILE STATUS 39: File attributes mismatch | Record length in program differs from cataloged physical file. | Ensure RECORD CONTAINS clause matches the actual file block length. |
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/languages/cobol/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/g1joshi/agent-skills/cobol)