Skip to main content
Ejecuta cualquier Skill en Manus
con un clic

convert-copybook-to-java-record

Estrellas4
Forks0
Actualizado23 de mayo de 2026 a las 20:50

Converts one Enterprise COBOL copybook (a `.cpy`, `.cbl`, or `.cob` file containing only DATA-DIVISION-style 01-level group items, no PROCEDURE DIVISION) into one or more idiomatic Java 21 `record` types plus a deterministic `copybook-mapping.json` artifact that documents every field-level mapping (COBOL name + PICTURE + USAGE → Java name + Java type + scale + nullability + EBCDIC byte offset). Handles fixed-format and free-format copybooks; resolves `OCCURS` to `List<T>`, `OCCURS DEPENDING ON` to a bounded list with a runtime size guard, `REDEFINES` to a Java 21 sealed interface with one record per variant, `COMP-3` / `PACKED-DECIMAL` to `BigDecimal` with explicit `scale`, `COMP` / `BINARY` to `int` / `long` / `BigInteger` by digit count, and `PIC X(n)` / `PIC A(n)` to `String` (trailing-space semantics recorded in the mapping). USE this skill when you have a copybook (typically surfaced by `analyze-cobol-program#/data/copybooks[]`) and need immutable Java DTOs that downstream skills (`map-vsam-db2-to-jpa`,

Instalación

Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.

Explorador de archivos
3 archivos
SKILL.md
readonly