Ebcdic Overpunch Decoding logo

Ebcdic Overpunch Decoding

OrganizationPopular
benchflow-ai
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. "0000000000123D" or "0000000000045M").

Overview

Publisherbenchflow-ai
Repositoryskillsbench
Skill nameebcdic-overpunch-decoding
Stars
1.8K
Forks
367
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by benchflow-ai on GitHub. Read the source before you install it.

Installation

Install the Ebcdic Overpunch Decoding AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git /tmp/skillsbench
mkdir -p .claude/skills
cp -r /tmp/skillsbench/tasks-extra/cobol-gl-batch-reconcile/environment/skills/ebcdic-overpunch-decoding .claude/skills/ebcdic-overpunch-decoding
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ebcdic Overpunch Decoding in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ebcdic Overpunch Decoding on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ebcdic Overpunch Decoding is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

CharSignLast digitCharSignLast digit
{+0}0
A+1J1
B+2K2
C+3L3
D+4M4
E+5N5
F+6O6
G+7P7
H+8Q8
I+9R9

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 ({, AI) is the visible-looking case and is often handled first. The negative half (}, JR) 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:

cobol
       *> 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 JR as well as the positive {/AI. 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 I and negative } J K L M N O P Q R).

Frequently asked questions

What does the Ebcdic Overpunch Decoding AI skill do?

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").

Why use Ebcdic Overpunch Decoding on TypingMind?

Because you install it once and use it with any model. Ebcdic Overpunch Decoding is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ebcdic Overpunch Decoding in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/benchflow-ai/skillsbench/tree/main/tasks-extra/cobol-gl-batch-reconcile/environment/skills/ebcdic-overpunch-decoding. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ebcdic Overpunch Decoding?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ebcdic Overpunch Decoding?

As many as you like. As long as a model supports skills, you can use Ebcdic Overpunch Decoding with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ebcdic Overpunch Decoding AI skill free?

Yes. It is published on GitHub by benchflow-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇