An IBM i, AS/400, RPG, RPGLE, COBOL or Db2 application can be old without being obsolete. Some programs remain stable, economical and deeply aligned with the business. Others survive only because nobody has mapped their dependencies, confirmed their owners or measured what would break if they were removed.

The wrong decision at either extreme creates waste. Replacing every legacy component can destroy working business rules and introduce unnecessary operational risk. Continuing to patch everything can preserve duplication, fragile interfaces and avoidable support costs. The decision must be made program by program, supported by evidence rather than age alone.

The four legitimate treatment paths

Repair when the program still performs a necessary function, its boundaries are understood and a controlled correction can restore acceptable behavior. Repair is appropriate for bounded defects, validation failures, calculation errors, broken interfaces, performance problems and documentation gaps that do not justify a platform replacement.

Wrap when the core logic remains valuable but access, integration or usability is the primary constraint. A service layer, controlled interface, extraction process or downstream validation layer may extend the life of dependable logic without forcing a risky rewrite.

Replace when the business capability is still required but the current implementation creates unacceptable operating risk, blocks necessary change or cannot meet the target architecture. Replacement should preserve verified business rules, reconciled data and regression obligations instead of treating the old system as disposable.

Retire when the capability is no longer required, has been duplicated elsewhere or produces no confirmed downstream value. Retirement is not simply deleting source. It requires dependency confirmation, data-retention decisions, interface shutdown, operational signoff and a rollback plan.

Use PATH before selecting a treatment

PATH: Purpose, Architecture, Threat and Handoff. Score the evidence in all four areas before authorizing repair, wrapping, replacement or retirement.

1. Purpose: confirm the business obligation

Identify what the program actually does, who depends on its output and what event triggers its execution. Recover calculation rules, validations, exceptions, reports, files, database updates and manual workarounds. A program with no confirmed owner may still feed a critical downstream process, so absence of documentation is not evidence that it is safe to remove.

2. Architecture: map the real dependency surface

Inventory source members, copybooks, procedures, files, Db2 tables, job schedules, message queues, APIs, batch processes and external transfers. Distinguish direct dependencies from assumptions. The treatment path should reflect the actual coupling: a contained calculation may be repairable, while a program embedded across dozens of jobs may require wrapping or staged replacement.

3. Threat: measure operational and change risk

Review failure history, unsupported components, access limitations, security exposure, data-quality defects, performance constraints, available test evidence and recovery options. Risk is not limited to the old program. A rewrite with incomplete requirements, weak reconciliation or no rollback plan can be more dangerous than the legacy component it replaces.

4. Handoff: define the destination and proof

Every treatment needs a controlled completion state. A repair needs changed-source traceability and verification results. A wrapper needs interface contracts and exception handling. A replacement needs source-to-target mapping, reconciled outputs and regression evidence. A retirement needs dependency signoff, retained records and confirmation that scheduled or downstream activity has stopped safely.

A practical decision matrix

If the evidence is incomplete, the correct decision is not to guess. Start with a discovery or remediation pilot that recovers the business purpose, maps the dependency surface and produces a reviewable treatment recommendation.

Begin with one decision-ready work package

CapBlue Processing Services provides remote IBM i and AS/400 application inventory, RPG/RPGLE and COBOL analysis, business-rule recovery, dependency mapping, Db2 conversion preparation, targeted remediation and modernization planning. We can begin with one representative program or bounded application group.

Send the platform, program group, known problem, desired outcome and available evidence to admin@capitalblueprinthq.com to discuss a no-cost proof of capability or defined work package.