Many APIs are available on the IBM i that will enable you to extend your RPG applications; the C Runtime APIs provide a wide range of added functions.
Written by Joe Pluta
In a previous article, I demonstrated how you could use the CEE APIs to provide additional programming features to your RPG programs, specifically in the area of advanced mathematical and trigonometric functions. The CEE APIs are very standardized, with traditional (for RPG programmers, anyway!) parameter- and error-handling. The C Runtime APIs are quite a bit different as they are modeled after the existing APIs of the UNIX world. And while those APIs are completely familiar to the UNIX developers among us, we RPG types can use a little help getting started with them, and this article provides that help.
The User Space is an interesting object. User Spaces have been around on this architecture for nearly 20 years, and yet many people still don't know how to create them or why they would use them. In fact, the underlying object on which User Spaces are based was the first object created for this architecture back in the mid-1970s.