Learn RPG4 with Real Code Examples
Updated Nov 27, 2025
Learning Path
Learn free-form syntax
Understand files/I/O
Study procedures and prototypes
Master SQL + RPG integration
Implement service programs and modular design
Skill Improvement Plan
Week 1: Basic RPGLE syntax
Week 2: Database operations
Week 3: Procedures and modular code
Week 4: SQL + modern APIs
Week 5: Build service programs and optimization
Interview Questions
Explain the role of activation groups in ILE RPG.
How does RPG integrate with Db2 for i?
Difference between fixed-format and free-form RPG.
Describe how a service program works.
How do you debug an RPG program?
Cheat Sheet
Use /free for modern RPG code
Define procedures in separate modules
Always prototype external calls
Prefer SQL for modern data access
Manage library lists carefully
Books
Programming in RPG IV
ILE RPG Reference
Modern RPG for the Modern Programmer
IBM i Modernization
RPGLE Free-Form Guide
Tutorials
RPGLE free-form basics
File and SQL I/O
Service programs and modules
Building APIs with RPG
Modernizing legacy RPG/400
Official Docs
IBM RPG IV Reference
IBM ILE Concepts Guide
Db2 for i SQL Reference
IBM Technology Refresh documentation
IBM Knowledge Center RPG articles
Community Links
RPG Cafe
Midrange.com
Code for IBM i
COMMON user group
IBM i community Slack
Community Support
RPG Cafe (IBM)
Midrange.com mailing list
Code for IBM i community
LinkedIn RPG groups
Modern RPG developers Slack