ebcdic-overpunch-decoding
Reference for the EBCDIC "overpunch" / zoned-decimal sign convention where the units position of a numeric field is replaced with a letter that encodes both a digit and a sign. Useful when reading mainframe-style fixed-length tapes whose amount fields appear as digits followed by a letter (e.g.
Install / Use
npx skills add benchflow-ai/skillsbench --skill ebcdic-overpunch-decodingInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of ebcdic-overpunch-decoding
ebcdic-overpunch-decoding scores 84/100 on our quality scale, 2626th of 4,653 Development & Engineering skills we index.
Its SKILL.md is 3.9 KB long, split into 6 sections with 1 code example: a solid amount of guidance for an agent.
With 1,813 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so ebcdic-overpunch-decoding is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
ebcdic-overpunch-decoding compared with similar skills
All 4 of these similar skills score higher than ebcdic-overpunch-decoding; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ebcdic-overpunch-decoding (this skill)by benchflow-ai | 84 | 1.8k | 2mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 87.6k | 16d ago | CLAUDE.md |
| ai-job-searchby MadsLorentzen | 100 | 44.7k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 2d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 9d ago | SKILL.md |
Frequently asked questions
- How do I install ebcdic-overpunch-decoding?
- Run
npx skills add benchflow-ai/skillsbench --skill ebcdic-overpunch-decoding. The install tabs above show the steps for each supported agent. - Which AI agents does ebcdic-overpunch-decoding work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is ebcdic-overpunch-decoding safe to use?
- It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ebcdic-overpunch-decoding still maintained?
- The repository was last updated about 2 months ago, so ebcdic-overpunch-decoding is actively maintained.
Skill content
View source on GitHubname: ebcdic-overpunch-decoding description: >- Reference for the EBCDIC "overpunch" / zoned-decimal sign convention where the units position of a numeric field is replaced with a letter that encodes both a digit and a sign. Useful when reading mainframe-style fixed-length tapes whose amount fields appear as digits followed by a letter (e.g. "0000000000123D" or "0000000000045M").
EBCDIC overpunch (zoned decimal sign)
On classic mainframe tapes, signed numeric amounts are stored as N-1 digits followed by a single byte where the high-order bits carry the sign and the low-order bits carry the final decimal digit. When the file is converted to ASCII / printable form, the last byte is rendered as a letter (or a brace).
Sign and digit table
| Char | Sign | Last digit | | Char | Sign | Last digit |
|------|------|------------|-------|------|------|------------|
| { | + | 0 | | } | − | 0 |
| A | + | 1 | | J | − | 1 |
| B | + | 2 | | K | − | 2 |
| C | + | 3 | | L | − | 3 |
| D | + | 4 | | M | − | 4 |
| E | + | 5 | | N | − | 5 |
| F | + | 6 | | O | − | 6 |
| G | + | 7 | | P | − | 7 |
| H | + | 8 | | Q | − | 8 |
| I | + | 9 | | R | − | 9 |
Positive zero is {; negative zero is }. Both decode to magnitude 0 — keep
the sign attached so downstream arithmetic doesn't drop a debit's polarity.
A common defect
The positive half of the table ({, A–I) is the visible-looking case and
is often handled first. The negative half (}, J–R) looks like ordinary
letters and is easy to forget. If only the positive letters are decoded,
debits and credits both come through as positive — the totals look plausible
but signs are wrong on every negative row.
Decoding pattern (placeholder names)
Split the field into the leading digits and the overpunch byte, look up the sign + units digit from the table above, recombine, then build the signed working-storage value. The shape below uses generic identifiers — substitute your own field names:
*> placeholders: digits-buf holds the recombined unsigned digits,
*> op-char is the overpunch byte, sgn / lo-digit are scratch.
split raw-amount into (leading-digits, op-char)
EVALUATE op-char
WHEN "{" sgn := "+" lo-digit := 0 *> positive zero
WHEN "A" THRU "I" sgn := "+" lo-digit := 1..9
WHEN "}" sgn := "-" lo-digit := 0 *> negative zero
WHEN "J" THRU "R" sgn := "-" lo-digit := 1..9
END-EVALUATE
digits-buf := leading-digits with lo-digit appended
signed-value := (sgn = "-") ? -digits-buf : +digits-buf
The decisive point is that the EVALUATE must cover both halves of the
table — the negative letters } and J–R as well as the positive
{/A–I. The exact PIC clauses and MOVE targets depend on your own
record layout; what matters is that no overpunch character falls through
undecoded.
Some shops use COBOL's SIGN IS TRAILING SEPARATE / SIGN IS TRAILING
clauses with native EBCDIC zoned data, but on ASCII-converted tapes the
characters above are literally what you read — explicit lookup is the
clearest decode.
Verification tip
Pick one positive and one negative row from the tape, decode by hand using the table, and reconcile against an expected total. If only the positive side works you will see plausible magnitudes but inverted aggregate signs.
References
- IBM Enterprise COBOL Language Reference — "Zoned decimal" / "USAGE
DISPLAY" with
SIGN IS …clauses. - IBM Knowledge Center: "Signed zoned decimal numbers" (overpunch table for
positive
{ A B C D E F G H Iand negative} J K L M N O P Q R).
Related Skills
Agent-Reach
87.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ai-job-search
44.7kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
