SQL Functions You Didn’t Know You Had, Part 1
October 22, 2014 Ted Holt
What if I told you that you may have some potential powerful SQL functions on your system that you are not aware of? What if I told you that I have no idea what those SQL functions are named? What if I told you that you could easily use existing RPG routines in SQL queries? Would you be interested? (Take a tip from the Little Rascals (AKA Our Gang) and say, “And how!”) It’s easy to make SQL functions out of the subprocedures in service programs. To illustrate, here’s the source code for an RPG module from which a service |