Home › IBM i Learning Paths › RPGLE Learning Path: Beginner to Advanced
This page lists every published RPGLE lesson on AS400Decoded in the order it was designed to be read. Each entry gives the lesson’s level and links to the lessons before and after it.
Start here: lesson 1, RPGLE for Beginners, gives the big picture. Then work down the page. Levels rise from Beginner to Intermediate as you go. Stages that are still being written are listed at the end, with existing articles you can read in the meantime.
Stage 1: Getting Started
Lessons 1 to 7. Starts at Beginner and ends at Beginner to Intermediate.
1. RPGLE for Beginners: A Practical IBM i Learning Path
The pillar overview: what RPGLE is, why it still matters, and how this path is organized.
- Level: Beginner
- Previous: none, this is the first lesson
- Next: What RPGLE Is and Where It Fits on IBM i
2. What RPGLE Is and Where It Fits on IBM i
RPG, RPGLE, RPG IV, and ILE RPG terminology, and where the language sits on IBM i.
- Level: Beginner
- Previous: RPGLE for Beginners: A Practical IBM i Learning Path
- Next: RPGLE Source Members, Compilers, and Build Flow
3. RPGLE Source Members, Compilers, and Build Flow
How RPGLE source becomes a compiled IBM i program object.
- Level: Beginner
- Previous: What RPGLE Is and Where It Fits on IBM i
- Next: RPGLE Specifications: Fixed, Free, and Fully Free
4. RPGLE Specifications: Fixed, Free, and Fully Free
The three RPGLE source styles you will see in real IBM i code.
- Level: Beginner to Intermediate
- Previous: RPGLE Source Members, Compilers, and Build Flow
- Next: RPGLE Development Environments and Tooling Basics
- Reference: Fixed-Format to Free-Format Opcode Mapping
5. RPGLE Development Environments and Tooling Basics
Editing tools and the edit, compile, diagnose, and run workflow.
- Level: Beginner to Intermediate
- Previous: RPGLE Specifications: Fixed, Free, and Fully Free
- Next: How to Read an RPGLE Program From Top to Bottom
6. How to Read an RPGLE Program From Top to Bottom
A strategy for reading RPGLE source in the right order.
- Level: Beginner to Intermediate
- Previous: RPGLE Development Environments and Tooling Basics
- Next: RPGLE Naming Conventions and Code Organization
7. RPGLE Naming Conventions and Code Organization
Clearer names and cleaner ordering for code that is easier to maintain.
- Level: Beginner to Intermediate
- Previous: How to Read an RPGLE Program From Top to Bottom
- Next: RPGLE Program Structure Explained
Stage 2: Program Structure
Lessons 8 to 13. Starts at Beginner to Intermediate and ends at Intermediate.
8. RPGLE Program Structure Explained
The major sections of a typical RPGLE program and why each one exists.
- Level: Beginner to Intermediate
- Previous: RPGLE Naming Conventions and Code Organization
- Next: RPGLE Control Specifications and Compiler Directives
9. RPGLE Control Specifications and Compiler Directives
Compiler directives, the **FREE directive, CTL-OPT, and program-wide control options.
- Level: Intermediate
- Previous: RPGLE Program Structure Explained
- Next: RPGLE Input and Output Specifications Explained
10. RPGLE Input and Output Specifications Explained
Traditional input and output specifications and the modern fully free-form approach.
- Level: Intermediate
- Previous: RPGLE Control Specifications and Compiler Directives
- Next: RPGLE Calculation Specs and Logic Blocks
11. RPGLE Calculation Specs and Logic Blocks
How legacy C-specs express calculations, and how to map them to fully free-form logic.
- Level: Intermediate
- Previous: RPGLE Input and Output Specifications Explained
- Next: RPGLE Indicators and Status Flags
- Reference: RPGLE Opcode Reference, Fixed-Format to Free-Format Opcode Mapping
12. RPGLE Indicators and Status Flags
How indicators and status flags drive legacy program flow, and clearer modern alternatives.
- Level: Intermediate
- Previous: RPGLE Calculation Specs and Logic Blocks
- Next: RPGLE Source Layout and Readability
- Reference: RPGLE File and Error BIFs Reference
13. RPGLE Source Layout and Readability
Consistent sections, spacing, indentation, and comments that make fully free-form RPGLE easier to review.
- Level: Intermediate
- Previous: RPGLE Indicators and Status Flags
- Next: RPGLE Variables and Storage Types
Stage 3: Variables and Data
Lessons 14 to 18. Starts at Beginner to Intermediate and ends at Intermediate.
14. RPGLE Variables and Storage Types
Declaring variables with DCL-S, and how scope and storage type control visibility and lifetime.
- Level: Beginner to Intermediate
- Previous: RPGLE Source Layout and Readability
- Next: RPGLE Data Types, Lengths, and Precision
15. RPGLE Data Types, Lengths, and Precision
Character, decimal, integer, date/time, and indicator types, and what length and precision mean.
- Level: Intermediate
- Previous: RPGLE Variables and Storage Types
- Next: RPGLE Data Structures Explained
- Reference: RPGLE Numeric and Conversion BIFs Reference, RPGLE Date and Time BIFs Reference
16. RPGLE Data Structures Explained
Typed subfields, QUALIFIED access, LIKEDS reuse, and simple nested data structures.
- Level: Intermediate
- Previous: RPGLE Data Types, Lengths, and Precision
- Next: RPGLE Constants and Literals
17. RPGLE Constants and Literals
Variables versus named constants versus literals, including DCL-C and figurative constants.
- Level: Intermediate
- Previous: RPGLE Data Structures Explained
- Next: RPGLE Passing Data by Value and by Reference
18. RPGLE Passing Data by Value and by Reference
What default parameter passing, VALUE, and CONST do to the caller’s storage.
- Level: Intermediate
- Previous: RPGLE Constants and Literals
- Next: RPGLE IF, ELSE, and ELSEIF Decisions
Stage 4: Decisions
Lessons 19 to 22. Starts at Beginner to Intermediate and ends at Intermediate.
19. RPGLE IF, ELSE, and ELSEIF Decisions
One-way, two-way, and ordered decisions with IF, ELSEIF, ELSE, and ENDIF.
- Level: Beginner to Intermediate
- Previous: RPGLE Passing Data by Value and by Reference
- Next: RPGLE Select and When Logic
20. RPGLE Select and When Logic
Readable multi-branch decisions with SELECT, WHEN, OTHER, and ENDSL.
- Level: Intermediate
- Previous: RPGLE IF, ELSE, and ELSEIF Decisions
- Next: RPGLE Nested Decisions and Guard Clauses
- Reference: RPGLE Control-Flow Opcodes Reference
21. RPGLE Nested Decisions and Guard Clauses
Using guard clauses and early exits to flatten nested conditions.
- Level: Intermediate
- Previous: RPGLE Select and When Logic
- Next: RPGLE Boolean Logic and Comparison Patterns
22. RPGLE Boolean Logic and Comparison Patterns
Comparison operators, AND/OR precedence, and readable compound conditions.
- Level: Intermediate
- Previous: RPGLE Nested Decisions and Guard Clauses
- Next: RPGLE DO Loops Explained
Stage 5: Loops
Lessons 23 to 26. Starts at Beginner to Intermediate and ends at Intermediate.
23. RPGLE DO Loops Explained
Counted DO loops: index setup, inclusive limits, and avoiding boundary mistakes.
- Level: Beginner to Intermediate
- Previous: RPGLE Boolean Logic and Comparison Patterns
- Next: RPGLE DOU Loops Explained
24. RPGLE DOU Loops Explained
Post-test DOU loops that always run their body at least once.
- Level: Intermediate
- Previous: RPGLE DO Loops Explained
- Next: RPGLE DOW Loops Explained
25. RPGLE DOW Loops Explained
Pre-test DOW loops whose body can run zero times, and how to trace them.
- Level: Intermediate
- Previous: RPGLE DOU Loops Explained
- Next: RPGLE LEAVE, ITER, and Loop Control
26. RPGLE LEAVE, ITER, and Loop Control
Exiting a loop with LEAVE and skipping an iteration with ITER.
- Level: Intermediate
- Previous: RPGLE DOW Loops Explained
- Next: RPGLE Arrays and Tables
- Reference: RPGLE Control-Flow Opcodes Reference
Stage 6: Arrays and Data Structures
Lessons 27 to 28. Starts at Beginner to Intermediate and ends at Intermediate.
27. RPGLE Arrays and Tables
Fixed-size arrays with DIM, one-based subscripts, and %ELEM.
- Level: Beginner to Intermediate
- Previous: RPGLE LEAVE, ITER, and Loop Control
- Next: RPGLE Varying-Dimension Arrays
- Reference: RPGLE Array and List BIFs Reference
28. RPGLE Varying-Dimension Arrays
Arrays that grow within a declared maximum, VAR versus AUTO, and guarded appends.
- Level: Intermediate
- Previous: RPGLE Arrays and Tables
- Next: the next stage is being written
Still to come in this stage: RPGLE Data Structures for Related Fields; RPGLE Built-In Functions for Lists and Arrays.
Coming Next
These stages are planned. Where an existing article already covers the topic, it is listed so you can keep going.
Stage 7: Procedures and Prototypes
Planned lessons: RPGLE Procedures and Subprocedures; RPGLE Prototypes and Procedure Interfaces; RPGLE Procedure Overloading and Optional Parameters; RPGLE Recursive Procedures and Reentrancy; RPGLE Error Handling in Procedures.
Read now:
Stage 8: Modules and Service Programs
Planned lessons: RPGLE Modules and Compilation Units; RPGLE Service Programs and Exported Procedures; RPGLE Binding Directories and Signatures; RPGLE Reusable Code Packaging Patterns.
Read now:
- IBM i Modules, Bound Programs, and Binding Directories Explained
- Build an ILE RPG Service Program: NOMAIN Source, Binder Language, CRTSRVPGM and UPDSRVPGM in 2026
Stage 9: Database File Operations
Planned lessons: RPGLE Native Database I/O with Files; RPGLE READ CHAIN SETLL and READE; RPGLE Update Delete and Write Operations; RPGLE Record Locks and Commitment Control.
Quick reference now:
- RPGLE File I/O Opcodes Reference
- RPGLE CHAIN Opcode Reference
- RPGLE SETLL and SETGT Opcode Reference
- RPGLE READ, READE and READP Opcode Reference
- RPGLE UPDATE, WRITE and DELETE Opcode Reference
- RPGLE File and Error BIFs Reference
Stage 10: Embedded SQL
Planned lessons: RPGLE Embedded SQL Basics; RPGLE SQL Cursor Patterns; RPGLE Host Variables and SQL Diagnostics; RPGLE SQL Performance and Error Handling.
Read now:
Stage 11: Error Handling and Debugging
Planned lessons: RPGLE Error Handling Patterns; RPGLE Debugging Tools and Techniques; RPGLE Logging Messages and Tracing.
Read now:
- Error handling in RPG: building programs that fail gracefully
- Debugging RPG programs: the ILE debugger, source-level debugging, and reading dumps
Stage 12: Modern RPG and Professional Practice
Planned lessons: RPGLE Modern Error-Free Coding Practices; Modern Fixed Free-Form RPGLE Coding Standards; RPGLE JSON XML and API Integration; RPGLE Testing Strategies and Unit Tests; RPGLE Interview Questions and Practice Scenarios.
Read now:
- Free-format RPG: A practical guide for intermediate developers
- RPG Unit Testing with RPGUnit in 2026: Writing Test Cases for ILE RPG Service Programs, Test Suites, and CI Integration
Quick reference now:
More Ways to Learn RPG
- RPG Programming Guide: the same lessons grouped by topic, plus advanced articles.
- IBM i Learning Paths: other guided routes.