Learn RPG on IBM i with VSCode. Variable-Dimension Arrays (AUTO and VAR)

Did you know that modern RPG supports arrays that can grow and shrink while your program is running? Most RPG developers learn fixed-size arrays very early in their journey, but many never discover one of the most powerful features added to RPG in recent years: ✅ Variable-dimension arrays In this episode, we explore how to create dynamic arrays using: 🔹 DIM(*VAR) 🔹 DIM(*AUTO) You'll learn how to: ✔️ Create arrays whose size changes at runtime ✔️ Increase and reduce the number of active elements ✔️ Use %ELEM to control array dimensions ✔️ Automatically add elements with *NEXT ✔️ Build cleaner and more flexible RPG programs ✔️ Write modern RPG code directly from VS Code We also discuss the differences between traditional fixed arrays and variable-dimension arrays, and when each approach makes sense in real applications. 🎯 Topics covered: 📦 Traditional arrays vs dynamic arrays 📈 DIM(*VAR) explained ⚡ DIM(*AUTO) explained 🔢 Working with %ELEM ➕ Adding elements with *NEXT 🔄 Growing and shrinking arrays 💻 Practical RPG examples 🚀 Modern RPG development in VS Code Whether you're new to RPG or have years of IBM i experience, this is a feature worth adding to your toolbox. 🔔 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:55 Fixed-size arrays recap 01:40 Introducing DIM(*VAR) arrays (and using %ELEM to control the size) 04:19 Discovering the ACTUAL number of elements of our array 05:48 Introducing DIM(*AUTO) arrays (and using *NEXT) 07:39 Practical example using *AUTO arrays 12:44 Things to remember ... 13:47 When should we use them...?? 15:12 Ending #IBM #IBMi #RPG #RPGLE #AS400 #IBMChampion #VSCode #Programming #LearnRPG #RPGLE #IBM #SoftwareDevelopment #IBMChampion

Learn RPG on IBM i with VSCode. Connecting to the IBM i
▶︎

Learn RPG on IBM i with VSCode. Connecting to the IBM i

Learn RPG on IBM i with VSCode. Sorting and searching data in arrays ( %LOOKUP and SORTA )
▶︎

Learn RPG on IBM i with VSCode. Sorting and searching data in arrays ( %LOOKUP and SORTA )

7 June 2026
▶︎

7 June 2026

Storchennest Live Webcam in Bad Salzungen, Thüringen
▶︎

Storchennest Live Webcam in Bad Salzungen, Thüringen

Learn RPG on IBM i with VSCode. Arrays & Data Structures Explained (Beginner Guide)
▶︎

Learn RPG on IBM i with VSCode. Arrays & Data Structures Explained (Beginner Guide)

How AI agents & Claude skills work (Clearly Explained)
▶︎

How AI agents & Claude skills work (Clearly Explained)

Why birth rates are falling everywhere all at once | FT
▶︎

Why birth rates are falling everywhere all at once | FT

Tuscan Cottage Wildflowers Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames
▶︎

Tuscan Cottage Wildflowers Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames

Software engineering at the tipping point
▶︎

Software engineering at the tipping point

Stop Prompting Claude. Use Karpathy's Method Instead.
▶︎

Stop Prompting Claude. Use Karpathy's Method Instead.

Learn RPG on IBM i with VSCode. IF, SELECT and Indicators for beginners.
▶︎

Learn RPG on IBM i with VSCode. IF, SELECT and Indicators for beginners.

Unfortunately, I Was Right
▶︎

Unfortunately, I Was Right

HOLY ROSARY TODAY THURSDAY, JUNE 11, 2026 ST. JUDE THADDEUS & LUMINOUS MYSTERIES | DAILY HOLY ROSARY
▶︎

HOLY ROSARY TODAY THURSDAY, JUNE 11, 2026 ST. JUDE THADDEUS & LUMINOUS MYSTERIES | DAILY HOLY ROSARY

Rowan Atkinson's Brilliant Humor Leaves Celebrities in Tears!
▶︎

Rowan Atkinson's Brilliant Humor Leaves Celebrities in Tears!

Learn RPG on IBM i with VSCode. FOR, DOW and DOU loops (Beginner Guide)
▶︎

Learn RPG on IBM i with VSCode. FOR, DOW and DOU loops (Beginner Guide)

1,000+ Tokens/Sec: Google Just Shattered the AI Speed Limit (DiffusionGemma)
▶︎

1,000+ Tokens/Sec: Google Just Shattered the AI Speed Limit (DiffusionGemma)

Co-Creator of Haskell: Why Learn Functional Programming, Useless vs Useful Languages | Simon Jones
▶︎

Co-Creator of Haskell: Why Learn Functional Programming, Useless vs Useful Languages | Simon Jones

New Jellyfish Aquarium • Healing of Stress, Anxiety and Depressive States • Goodbye Insomnia #30
▶︎

New Jellyfish Aquarium • Healing of Stress, Anxiety and Depressive States • Goodbye Insomnia #30

God Says:"STOP HERE — LISTEN AND HEAR ME SPEAK"/God Message Now/God Message
▶︎

God Says:"STOP HERE — LISTEN AND HEAR ME SPEAK"/God Message Now/God Message

Rural Countryside Field Path Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames
▶︎

Rural Countryside Field Path Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames