Learn RPG on IBM i with VSCode. Advanced arrays in RPG ( %LIST, FOR-EACH, WHEN-IS, WHEN-IN, %RANGE )

In this episode, we continue working with arrays in RPG… but now using some of the most modern and elegant features available in free-format RPG. We introduce: ✅ %LIST ✅ FOR-EACH ✅ Modern SELECT syntax ✅ WHEN-IN and WHEN-IS ✅ %RANGE These features make RPG code: cleaner, easier to maintain, and much more expressive. If you are learning modern RPG, this is an extremely important episode. 🚀 In this video you will learn: 🔹 How to initialize arrays using %LIST 🔹 How to use lists directly inside IF conditions 🔹 Why FOR-EACH loops are cleaner than traditional indexed loops 🔹 How to simplify SELECT statements 🔹 Using WHEN-IN with lists of values 🔹 Using WHEN-IS for comparisons 🔹 Using %RANGE for checking if a value is inside a range 🔹 Writing more modern and readable RPG code 💻 We also build practical examples step by step directly in VS Code. This series is designed for beginners, but also for RPG developers who want to modernize their coding style using fully free RPG and modern IBM i development tools. 🔔 Subscribe and hit the bell so you don't miss the next episode! 👍 Like if this helped you — it really supports the channel! 💬 Drop a comment! 00:00 Introduction 00:44 Quick recap about arrays 01:58 Initializing arrays using %LIST 03:26 Using IN to comparing values in a %LIST 05:48 Using FOR-EACH for processing arrays 08:13 Introducing WHEN-IN and WHEN-IS to the SELECT statement 11:13 An example 18:52 Ending and .... what's next?? #IBM #IBMi #RPG #RPGLE #AS400 #IBMChampion #VSCode #Programming #LearnRPG #RPGLE #IBM #SoftwareDevelopment #IBMChampion