Insights & Blog

IBM i / AS400 RPG Modernization: Connecting Legacy Business Systems with Modern APIs

IBM i is current, but 7.4 is now on paid extension. Expose RPG as APIs, replace green screens and modernize RPG step by step.

By Hetal KSoftware Architecture, .NET & APIs

An IBM i 7.4 session showing a PRODLIB library with RPGLE programs, display files, DDS files, CL, job scheduler and data queues, a 5250 customer enquiry screen and IBM i 7.4 on Service Extension, with a fixed-format RPG CHAIN snippet, flowing through RPG to free-form, IWS REST APIs and 5250 to web UI into REST APIs on IBM i 7.6, free-form RPG with SQL, a web and mobile UI and a cloud data platform, with an embedded SQL snippet

IBM i RPG modernization connects business systems running on IBM i (formerly AS/400 and iSeries) to modern applications through APIs, modern RPG and SQL, while keeping the reliable core that many distributors, manufacturers, retailers and insurers still run on. IBM i is a current IBM platform: version 7.6 became generally available in April 2025. Version 7.4 moved off standard support on 30 September 2026. The real pressures are green-screen user interfaces, fixed-format RPG that few developers can read, and data locked away from analytics and cloud services. This guide covers the support status, integration options, code patterns and a phased plan.

Technically reviewed by Harshita Pipaliya.

This is the twenty-third article in our Legacy Modernization Series. It follows COBOL/CICS Mainframe Modernization, which uses the same API-first approach on IBM Z.

Executive summary

  • The platform is current: IBM i 7.6 became generally available on 18 April 2025 and 7.5 on 10 May 2022. IBM will announce their end of standard support with at least 12 months’ notice (IBM release life cycle).
  • 7.4 is on paid extension: standard support for IBM i 7.4 changed on 30 September 2026. IBM’s Service Extension for 7.4 runs from 1 October 2026 to 30 September 2029.
  • APIs are built in: the Integrated Web Services (IWS) server exposes ILE programs as REST or SOAP services, and Db2 for i SQL HTTP functions let RPG and SQL call external REST APIs.
  • Modernize the code, not just the screen: converting fixed-format RPG to free-form RPG with embedded SQL makes the logic readable and testable for a wider pool of developers.
  • Our recommendation: move to IBM i 7.5 or 7.6, expose key business functions as APIs, give users a web front end over those APIs, modernize RPG and the database step by step, and decide on any platform exit per capability, not as one big rewrite.

IBM i support status

ReleaseGenerally availableStandard supportNotes
IBM i 7.618 April 2025CurrentEnd date to be announced with 12 months’ notice
IBM i 7.510 May 2022CurrentEnd date to be announced with 12 months’ notice
IBM i 7.421 June 2019Changed 30 September 2026Service Extension 1 October 2026 to 30 September 2029
IBM i 7.315 April 2016Changed 30 September 2023Extended Service Extension to 30 September 2028

Source: IBM release life cycle page (modified March 2026). Hardware also matters: a server that cannot run 7.5 or 7.6 limits your options, so check your Power model.

What this means: IBM i is not end of life, but releases are. Plan upgrades to 7.5 or 7.6 alongside modernization, and treat paid service extensions as a bridge.

Why IBM i applications need modernizing

  • User experience: 5250 green screens are fast for experts but hard for new staff, customers and mobile users.
  • Skills: fixed-format RPG, data description specifications (DDS) and CL are unfamiliar to most developers.
  • Integration: partners, e-commerce and cloud services expect APIs and events, not file transfers.
  • Data access: analytics and AI teams need data in modern platforms, with clear models.
  • Change speed: large monolithic programs without automated tests slow every change.

Modernization paths compared

PathWhat it meansBest forWatch-outs
Upgrade and refactor on IBM iFree-form RPG, SQL, modular ILE, Git and CI/CDSystems that fit the business wellNeeds RPG skills and investment
API enablementREST APIs over RPG programs and Db2 for iNew channels and partnersDesign coarse-grained, secure APIs
New web front endBrowser UI over APIs, replacing 5250 screensUser experience and onboardingAvoid pure screen-scraping where possible
Data replicationChange data capture to a cloud data platformAnalytics, AI, reportingData latency and mapping
Rebuild or replace by capabilityMove selected functions to .NET, Java or SaaS behind the same APIsClear business case per capabilityIntegration and data sync during transition

Most programmes combine the first four, and use the fifth selectively.

IBM i to API concept mapping

IBM iModern equivalentNotes
RPG program or service program (ILE)REST API operation via IWSExpose business functions, not screens
5250 display files (DSPF)Web or mobile UI over APIs
DDS physical and logical filesSQL tables, views and indexes in Db2 for iConvert gradually; keep record formats compatible
Native I/O (CHAIN, READ, WRITE)Embedded SQLSet-based where possible
Data queues, data areasMessage queues, events, configuration
CL programs and job schedulerScheduled jobs, pipelines, events
User profiles and object authorityOAuth at the gateway, mapped service profiles, row and column access control
Save files and FTP interfacesAPIs and managed file transfer

Code patterns: before and after

The examples below are illustrative and simplified.

1. Fixed-format RPG with native I/O (before):

     FCUSTMAST  IF   E           K DISK
     C     CUSTNO        CHAIN     CUSTMAST
     C                   IF        %FOUND(CUSTMAST)
     C                   EVAL      BALANCE = CMBAL
     C                   ENDIF

2. Fully free-form RPG with embedded SQL (after): a procedure ready to expose as an API.

**free
dcl-proc getBalance export;
  dcl-pi *n packed(13:2);
    custNo char(10) const;
  end-pi;
  dcl-s balance packed(13:2) inz(0);

  exec sql
    select cmbal into :balance
      from custmast
     where cmcust = :custNo;

  return balance;
end-proc;

3. Calling an external REST API from Db2 for i SQL:

SELECT r.currency, r.rate
FROM JSON_TABLE(
       QSYS2.HTTP_GET('https://api.example.com/fx-rates?base=USD'),
       '$.rates[*]'
       COLUMNS (currency CHAR(3) PATH '$.code',
                rate DECIMAL(15,6) PATH '$.value')) AS r;

4. A .NET client using the IWS-hosted API through a gateway:

public record CustomerBalance(string CustomerNo, decimal Balance);

public class CustomerClient(HttpClient http)
{
    public Task<CustomerBalance?> GetAsync(string customerNo, CancellationToken ct) =>
        http.GetFromJsonAsync<CustomerBalance>($"customers/{Uri.EscapeDataString(customerNo)}/balance", ct);
}
IBM i RPG modernization target architecture: an IBM i system with ILE RPG and CL programs, DDS files, 5250 display files, Db2 for i, data queues and job scheduler is modernized with free-form RPG and SQL, REST APIs through the Integrated Web Services server behind an API gateway with OAuth, a web and mobile front end replacing green screens, outbound calls through Db2 for i SQL HTTP functions, change data capture to a cloud data platform for analytics and AI, Git and CI/CD with automated tests, and selected capabilities rebuilt in .NET or Java behind the same APIs
  1. Core: IBM i 7.5 or 7.6 with Db2 for i, running modernized ILE RPG and SQL.
  2. API layer: Integrated Web Services exposing business functions as REST APIs; SQL HTTP functions for outbound calls.
  3. Gateway and identity: an API gateway for OAuth, throttling and monitoring, with mapped service profiles on IBM i.
  4. User interface: web and mobile front ends over the APIs, replacing 5250 screens by business area.
  5. Data: change data capture into a cloud data platform for analytics, reporting and AI.
  6. Engineering: Git, CI/CD and automated tests for RPG, SQL and APIs.

Running core operations on IBM i? Talk to our modernization team about an API-first plan that keeps what works and opens it to new channels.

IBM i modernization steps

  1. Inventory: programs, service programs, files, display files, CL, jobs, interfaces and their usage.
  2. Upgrade to IBM i 7.5 or 7.6 if you are on 7.4 or earlier, and bring Technology Refresh and PTF levels current.
  3. Set up engineering: source in Git, a modern editor, builds and automated tests.
  4. Expose APIs for the most valuable business functions through IWS and a gateway.
  5. Refactor RPG to free-form with embedded SQL, module by module, starting with code you change most.
  6. Modernize the database: define DDS files as SQL tables and views where it helps, add constraints.
  7. Replace screens with web and mobile UIs over the APIs, by business area.
  8. Replicate data to a cloud platform for analytics and AI.
  9. Move capabilities off IBM i only where there is a clear business case, behind the same APIs.

Security considerations

  • Gateway first: expose APIs only through a gateway with TLS, OAuth and rate limiting.
  • Service profiles: run APIs under dedicated user profiles with the minimum object authority.
  • Row and column access control: use Db2 for i permissions and masks for sensitive data.
  • Retire insecure interfaces: replace plain FTP and Telnet with secure alternatives.
  • Audit: use the IBM i audit journal and correlate with gateway logs.

Testing, deployment and support

Testing

  • Capture current program outputs and compare them after RPG refactoring.
  • Contract tests for every API; end-to-end tests for each new UI flow.
  • Performance tests at peak, especially for interactive and batch overlap.

Deployment

  • Deploy RPG, SQL and API changes through a pipeline with promotion between environments.
  • Keep 5250 screens available while new UIs are adopted, then retire them.

Support

  • Track IBM i release support dates and apply Technology Refreshes and PTFs.
  • Document APIs, owners and runbooks for both IBM i and cloud teams.

Request an estimate

Cost and timeline depend on your application, data and integrations, so we estimate each project individually rather than publish price ranges. Hardware, IBM i licences and service extensions are extra. Cost drivers: program count and complexity, DDS usage, number of screens, integrations and test coverage.

Request an estimate for your application, or read legacy application modernization cost and ROI to build the business case.

FAQs

Is IBM i (AS/400) still supported?

Yes. IBM i 7.6 became available in April 2025 and 7.5 in May 2022, both under standard support. IBM i 7.4 moved to a paid Service Extension on 1 October 2026.

Do we have to leave IBM i to modernize?

No. Many organizations modernize on IBM i with APIs, web front ends, free-form RPG and SQL, and move only selected capabilities elsewhere.

How do we expose RPG programs as APIs?

Use the Integrated Web Services server on IBM i to expose ILE programs as REST or SOAP services, and publish them through an API gateway.

Can RPG call external REST APIs?

Yes. Db2 for i SQL HTTP functions such as HTTP_GET and HTTP_POST call REST services from SQL, which RPG can use through embedded SQL. The IWS client can also generate stubs for RPG.

Should we convert fixed-format RPG to free-form?

For code you change often, yes. Free-form RPG with embedded SQL is easier to read, test and staff.

What about green screens?

Replace them with web or mobile UIs over APIs, business area by business area. Screen-wrapping tools can help short term but do not fix the underlying design.

How long does IBM i modernization take?

A pilot with a few APIs and one UI area often takes two to four months. Enterprise programmes take a year or more, in phases.

Conclusion

IBM i remains a supported, current platform, but 7.4 is now on paid extension and green screens and fixed-format RPG hold businesses back. Upgrade to 7.5 or 7.6, expose business functions as secure APIs, replace screens with modern UIs, modernize RPG and the database step by step, and move capabilities elsewhere only where it pays.

Previous in this series: COBOL/CICS Mainframe Modernization. Next: AI-Powered Legacy Code Discovery.

Related services: Legacy Software Modernization · .NET Development · Microsoft Azure · AWS · Data and API Integration

Sources

Plan your IBM i modernization

Prominent.tech helps teams modernize IBM i applications step by step: secure APIs over RPG programs, web front ends to replace green screens, free-form RPG and SQL, and data replication for analytics and AI. Talk to our modernization team or explore our legacy software modernization services.

From insight to implementation

Turn these ideas into a practical plan

Discuss how the ideas in this article apply to your business, systems and data. We’ll help you identify a focused first step.