Author name: AS400 Decoded

Modern Integrations

AI-Assisted Legacy Code Documentation on IBM i in 2026: Using LLMs to Document RPG Programs, Extract Business Rules, and Build a Knowledge Base

A practical guide to using AI and large language models to document legacy IBM i RPG programs in 2026: extracting source code from IBM i, calling GPT-4o and IBM Granite via API, prompt engineering for RPG documentation, building a batch documentation pipeline, and creating a semantic search knowledge base over your entire IBM i codebase.

DB2 for i

DB2 for i Triggers in 2026: SQL and External Triggers, BEFORE and AFTER Timing, Audit Logging, and Calling RPG from a Trigger

DB2 for i triggers fire automatically on INSERT, UPDATE, and DELETE, enforcing rules that application code cannot bypass. This post covers SQL and external trigger types, BEFORE and AFTER timing, transition variables, writing audit tables, calling RPG programs from external triggers using ADDPFTRG, and practical audit and validation patterns.

Scroll to Top