copybook-cli-0.4.3 is not a library.
copybook-cli
CLI for working with COBOL copybooks and mainframe record data.
copybook supports parsing, inspection, decode/encode, verification, and support-matrix checks.
What it does
- Parse copybooks into machine-readable layout JSON.
- Decode fixed-length and RDW binaries to JSONL with codepage and type controls.
- Encode JSONL back to COBOL binary layout.
- Verify input data and enforce policy/quality checks.
- Inspect feature support and validate compatibility flags.
Commands
| Command | Purpose |
|---|---|
parse |
Parse copybook to JSON schema |
inspect |
Show formatted copybook layout |
decode |
Convert copybook-encoded binary to JSONL |
encode |
Convert JSONL to copybook binary |
verify |
Validate data against schema only |
support |
Show or check supported features |
determinism |
Verify decode/encode/round-trip determinism |
Quick start
Feature checks
Field projection
# Decode only selected fields
Dialect lever
# IBM Enterprise COBOL (zero-tolerant ODO)
# Micro Focus COBOL (one-tolerant ODO)
Determinism validation
# Verify round-trip determinism
# JSON output for CI integration
Installation
# Or build locally:
License
Licensed under AGPL-3.0-or-later. See LICENSE.