Let's talk about one of the latest new functions added to RPG: %SPLIT.
With split we can take a character string, a separator (one or more), and we can split it using those separators.... Easy!
Also, we can use the result of split as the input of FOR-EACH.
I give you a few examples!
Hope you like!
Enjoy!
#ibmi #ibm #rpg #rpgle #rpgfree #newvideo #ibmtraining #ibmcoding #rpgtraining #sqlrpgle #sqltraining #as400 #common #modernize #IBMChampion
0:00 Introduction
0:24 First example: New RPG program using VCode + Codefori, using %SPLIT
3:35 First example: Checking how it works on the green screen
4:59 Second example: Using %SPLIT with the *ALLSEP parameter
6:30 Second example: Checking how it works on the green screen
7:41 Third example: Using %SPLIT with FOR-EACH
9:17 Third example: Checking how it works on the green screen
10:15 Final comments and ending