RPG Programming Guide

Home › Learn IBM i › RPG Programming Guide

This guide groups every AS400Decoded RPG tutorial by topic so you can find the lesson you need quickly. If you would rather learn in order, follow the RPGLE Learning Path, which sequences the same lessons from beginner to advanced.

The core lessons use modern fully free RPGLE and explain legacy fixed-format code when you are likely to meet it in existing programs.

Prefer a guided order? Follow the RPGLE Learning Path: Beginner to Advanced.

Getting Started with RPGLE

Program Structure

Variables, Data Types, and Data Structures

Conditions and Decisions

Loops

Arrays

Procedures, Modules, and Service Programs

Embedded SQL, Screens, and Stream Files

Built-in Functions in Practice

Error Handling and Debugging

Modern and Advanced RPG

RPGLE Quick Reference

Lookup pages for syntax and edge cases, when you know what you need and want the answer fast.

Built-in Functions

Opcodes and File I/O

ILE Modules, Service Programs and Binding

The full index is the IBM i Developer Reference.

Planned Topics

These topics are on the writing plan for this guide:

  • Native file operations: READ, CHAIN, SETLL, and READE
  • Prototypes and procedure interfaces
  • Record locks and commitment control in RPG programs

Browse the Archive

See every post filed in the RPG Programming category, newest first.

Related Guides

Scroll to Top