O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Two Methods to Access Data from a User Space

If you have worked with i5/OS, you know this rule: There is always more than one way to get the job done. With user spaces, this means you can access data using two different methods. Each method has its strengths and weaknesses, which deserve some exploration.

First, consider the “slow” method, which involves the use of the Retrieve User Space API (QUSRTVUS). You give this API the name, starting position, and length of data to retrieve, and it gets that information and puts it in a variable for you. Since IBM introduced pointer support into RPGLE, this method is generally considered passé. The reason, of course, is speed. Every time you want to extract data from a user space, you have to call the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required