I have solved this in the past with QUSRSPLA. Have a look at
i5/OS API Finder, then enter QUSRSPLA under Find by Name
It's not too difficult, especially if you are an RPG programmer and you
If you need an example, I may be able to dig something up...