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

Comparing Methods to Access the List Information

Let’s take another look at the function provided in Figure 3.4, this time using the Retrieve User Space API (QUSRTVUS) to retrieve the list information. Figure 3.7 shows the differences between the two techniques. Several changes were made to the program to use QUSRTVUS.

Figure 3.7. Use QUSRTVUS rather than pointers to user spaces.
h dftactgrp(*no) bnddir('APILIB') DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++ dFig3_7 pr extpgm('FIG3_7') d LibName 10 const d DltPct 15 5 const dFig3_7 pi d LibName 10 const d DltPct 15 5 const d/copy qsysinc/qrpglesrc,qusgen d/copy qsysinc/qrpglesrc,quslobj d/copy qsysinc/qrpglesrc,qusrmbrd d/copy qsysinc/qrpglesrc,qusec dCrtUsrSpc pr * extproc('CrtUsrSpc') ...

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