Legacy System Intelligence · IBM i · AS/400

Understand, change, and modernize
your IBM i — from a browser.

Afunana reads your COBOL, RPG, and DDS source code and turns it into living business-level documentation. Then it lets you describe a change in plain language, review an exact plan, and execute it directly on the AS/400 — no VSCode, no IDE, no guesswork.

IBM i (AS/400)COBOLRPGDDSCLPSQL
Afunana system overview — business-level documentation extracted from live legacy source

Legacy knowledge is disappearing — and changes are getting riskier

Core business systems run on IBM i (AS/400). The developers who built them are retiring. The business logic lives only in code, understood by fewer people every year. Every change is a risk taken blind.

Operational risk

A production bug takes days to diagnose when nobody understands the business logic hiding in COBOL. Downtime costs money and erodes trust.

Average resolution: 3–5 days without documentation
🛡

Change risk

Every change to legacy code is a leap of faith. You can't see what else will break. You can't trace what depends on what. Every deployment is a gamble.

Undocumented dependencies cause most production incidents
👤

Knowledge loss

Every retirement removes institutional knowledge that exists nowhere else — not in docs, not in wikis, only in the code and in one person's memory.

65% of COBOL experts retire by 2029

Documentation is the starting point — not the goal

Afunana closes the loop between understanding your code and changing it. Every stage feeds the next. Documentation stays current because every executed change re-triggers the docs for the programs it touched.

01 · Understand

Read the code, surface the meaning

Business rules, call trees, field references, dead code — all extracted from source, all traced to line.

02 · Plan

Describe the change, get a plan

Plain-language intent becomes an exact plan: which members, which lines, which compile order, which regressions to run.

03 · Execute

Approve, then run it on the AS/400

One click writes the change directly to the machine. Live log streams every step as it runs.

04 · Refresh

Docs rebuild automatically

Programs touched by the change get re-analyzed. Your documentation never goes stale.

Every program, every file, every dependency — in plain business language

Afunana reads your source and produces documentation no human has the time to write. Not a transcript of the code — the business reason it exists, what breaks when it changes, and why.

System Overview

Start with the big picture

A business-level summary of what the system does, what it depends on, and the major functions grouped by purpose — generated from the actual source.

  • Business narrative written in plain language
  • Functional groupings derived from call patterns
  • Risk notes and improvement suggestions surfaced automatically
System Overview showing business description and functional groupings
Programs & files

Drill into any program or file

Searchable, filterable lists of every program (COBOL, RPG, CLP) and every file (PF, LF, DSPF). Each entry carries a business-level description — not a signature dump.

  • Per-program: business role, workflow, rules, error handling, data handling, change log, suggestions, flowcharts
  • Per-file: business purpose, programs that use it, field-level data dictionary with business meaning
  • Table of Contents on every page — navigate a 2,000-line program in seconds
Programs list with filters for COBOL, RPG, CLP and business descriptions
Program detail

The "Why Layer" — the part nobody writes down

For every program: business role, how it works, the rules it enforces, error handling, data flow, suggestions for improvement. Each section anchored to the source line that justifies it.

Program detail page with Table of Contents and business documentation
File detail

Data dictionary that actually says something

Every field with its technical type and length — plus the business meaning, the consequences of corruption, and the programs that rely on it.

File detail with field-level business descriptions and programs using the file
Call tree

See the whole web at once

Every program, every call, every file dependency — in one interactive tree. Click any node to see its documentation inline. No more grep archaeology.

Interactive call tree showing program and file dependencies with inline documentation

From a plain-language question to a live change on the AS/400

This is what makes Afunana more than a documentation tool. Describe the change in English or Hebrew. Review the plan Afunana proposes. Approve it. Watch it run on your machine.

Chat & Plan

Describe the change. Get an exact plan.

Ask in plain language — "change the national ID from 9 to 10 digits" — and Afunana proposes the full change: which members to edit, which lines, which compiles, which regressions to run. Nothing happens without your approval.

  • Plain-language intent → structured, executable plan
  • Every edit cites the exact source line it will modify
  • Compile order and regression tests computed automatically
Chat conversation producing a structured change plan with edit and compile steps
Change plans

Every plan is an artifact — reviewable, audited, approvable

Plans are persisted with an ID, a summary, a step list, and a status. Pending. Approved. Failed. Completed. You can open any plan, inspect every step, and decide whether to run it — today, tomorrow, or never.

Change plans log with plan IDs, statuses, titles, and summaries
Plan detail

Transparent down to the source line

Every step shows its type (source edit, compile, file change), the object it touches, the exact program, the source member, the line number, and what will change. No black box.

Change plan detail showing step-by-step edit and compile actions

Generate new programs — from a template, a file, or a spec document

Afunana isn't just for code you already have. Start a new program from a template, from an existing program, from a file structure, or by uploading an analysis document. Every step is editable — AI-filled or hand-written, you choose.

Eight guided steps, zero guesswork

Source → Files & fields → Lookup tables → Validation → Screens → Processing → Messages → Review & generate. Output is compilable COBOL or RPG, ready to deploy with the same Plan & Execute pipeline.

  • Start from a template — I/O, batch, subfile, validation
  • Start from an existing program — Afunana uses it as a base
  • Start from a file structure — define fields manually or upload a CSV
  • Start from an analysis document — upload PDF/DOCX/TXT, Afunana extracts files, fields, rules, and screens
Generate new program wizard with 8 guided steps

Tools for the full legacy lifecycle

Four tool families, all working against the same intelligence layer. No re-analysis, no re-upload, no separate products — everything connects.

Development & Editing

Generate new programs from templates, existing programs, file structures, or analysis documents. Edit live source on the AS/400 with documentation alongside. AI-assisted modifications with diff view. Extract business logic to SQL procedures.

Analysis & Quality

Change impact analysis — see what breaks before you touch it. Bug finder for unhandled errors, dead code, and missing validations. System health dashboard with quality scores. Test-case generation from business rules. Compliance and audit reporting.

Modernization & Migration

Modernization planning with effort estimation. RPG-to-COBOL translation. Two-way DDS and SQL translation. Export programs as OpenAPI specs. Migration roadmap to modern cloud platforms.

Documentation & Training

Onboarding material generated from your own code. Searchable knowledge base with source-line citations. Auto-refreshing documentation that stays in sync with every change.

Afunana Tools page showing Development, Analysis, Modernization, and Documentation categories

Run it like a product, not a project

Afunana ships with everything needed to operate a real system: live admin, full audit, configurable AI, one-click deploy, bilingual UI. A non-engineer can run the platform from the browser.

Admin control panel

Everything an operator needs — in one place

One admin panel for collections, users, projects, audit logs, change plans, prompts, configuration, and deployment. No SSH, no config files, no restarts.

Admin panel showing audit log with every build, deploy, and change-plan action

Collections

Create, configure, and build each collection. Per-collection output language, user access, and build history.

Users & roles

Admin, User, Viewer, QA. Role-based access to collections. Password reset and activation from the UI.

Project management

Built-in Categories → Epics → Tasks workflow for managing work between teams.

Audit log

Every admin action — build, deploy, plan, config change — logged with user, action, target, and IP.

Prompt editor

Every AI prompt editable live with placeholder validation. Changes take effect on the next call — no restart.

Configuration

Every backend setting editable from the browser, grouped by category, with secrets masked.

Live build

Builds stream their progress — nothing hidden

Trigger a build from the admin; watch it run in the browser. Stage-by-stage log: data dictionary, cross-reference, change impact reports, embeddings, BM25 index, ChromaDB. Every stage timed, every result captured.

Collections admin with live build log showing each stage
Configurable AI

Every prompt editable, every model swappable

Change the LLM behind the Builder, the Chat Planner, or the Answer Builder from the admin — no code changes. Primary + fallback chains across providers. Prompts live in files, editable in the browser, with placeholder validation.

Admin prompts and configuration panels
One-click deploy

Deploy from the browser, with a live log

Version bump, git add, commit, push, trigger prod — all from the admin, all streamed live. Deploy history kept, rollback trivial. A non-developer can ship a hotfix.

One-click deploy panel with live log and deploy history

Clarity for everyone — from CTO to developer

CTO / CIO

De-risk and plan

Understand your full legacy estate. See dependencies before committing to changes. Make modernization decisions on data — not guesswork. Prove compliance with evidence.

Team Lead

Manage what you see

See exactly what breaks before a change goes in. Approve AI-generated plans before they run. Assign work confidently. Onboard new developers in days — not months.

Developer

Change what you didn't write

Business rules, dependencies, and impact analysis in plain language. Describe the change — get an exact plan back. Execute with one click. No IDE wrestling.

Nothing runs without you

Every finding traced to a source line. Every change plan shows exactly what will happen — member, line, compile command — before you approve it. AI that cites its sources and asks before it acts.

0

Blind changes

Every plan is reviewed and approved before it executes.

100%

Coverage

Every program, file, and dependency documented.

Full

Audit trail

Every admin action logged with user, timestamp, and IP.

Live

Always current

Docs rebuild automatically after every executed change.

Your data stays yours

🔒

On-premise or private cloud

Deploy on your own infrastructure. Source code never leaves your network. No third-party access to your legacy code. Security-hardened with 19 fixes across the stack and a full audit log.

🌐

Browser-native

No VSCode setup. No extension management. No per-developer configuration. Afunana runs in any browser and talks directly to your AS/400 using standard IBM i protocols.

👥

Multi-team, bilingual

Each team works on their own collections with role-based access. Hebrew and English UI, switchable per collection. Admins manage builds, models, and execution approvals from one panel.

Afunana turns legacy from a burden into an asset — and from something you read into something you can change.

IBM i · AS/400 · COBOL · RPG · DDS · One platform. No bloated IDE.

Schedule a demo

See Afunana on your code

Tell us about your environment — how many programs, which languages, what you're trying to change. We'll show you working results on your own code in days, not months.

Afunana

169 Madison Ave. #2172

New York, NY 10016

+1 888 890 2534

support@afunana.io

Thank you. We'll get back to you shortly.

Something went wrong. Please try again or email us directly.