Coding in RPG (IBM i/AS400). Passing dimensional data structures as parameters to subprocedures

Опубликовано: 14 Октябрь 2024
на канале: Christian Larsen
777
23

In this video, I'd like to share with you an example of how dimensional data structures should be passed as parameters to a subprocedure in RPG.

As you know, a data structure can be defined in multiple ways. In this video I talk about dimensional data structures, and how to work with them when you need to pass them as parameters, or when you want to retrieve a data structure from a subprocedure as a return value.

Please, let me know what you think about it. Leave your comments below.
Don't forget to subscribe!

#ibmi #ibm #rpg #rpgle #rpgfree #newvideo #ibmtraining #ibmcoding #rpgtraining #as400 #common #modernize #ibmchampion

0:00 Introduction
0:12 Creating a new RPG program for the example
1:45 Using a template for defining my structure
2:40 Starting the main procedure
3:38 First subprocedure: it will make a sum of a field in my structure
6:10 Second subprocedure: same as before but for using with *auto dimensional structures
8:31 Third subprocedure: it will fill of data a structure passed as parameter
10:56 Forth subprocedure: it will return a filled structure to the main procedure
13:35 Final comments and ending