In this RPG example, I'm showing you how to convert a piece of code (in this case a subroutine), into a procedure. And after that, I'm showing you how simple is putting it into a service program, so everybody can use it from their programs too.
Have fun!
#ibmi #ibm #rpg #rpgle #rpgfree #newvideo #ibmtraining #ibmcoding #rpgtraining #as400 #common #serviceprogram
0:00 Introduction
0:25 Showing the source of the program with a subroutine
0:58 Converting the subroutine to a procedure
2:53 Showing how it works in the green screen
3:30 Taking the procedure out of the program, and creating the service program
4:06 Creating the prototype (copy member)
5:29 Creating the module
8:04 Creating the binding source
9:35 Creating the service program in the green screen
10:09 Creating a binding directory to put inside it the service program
10:53 Changing my program for using the service program
11:45 Testing it in the green screen (debug session)
12:50 Last comments and recomendations