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

Get a List of File Members

The List Database File Members API (QUSLMBR) is no different in style than the list APIs discussed in chapter 3. For this reason, there will not be any lengthy discussion of how to process the list. If you need a refresher, review chapter 3.

The parameters for QUSLMBR are shown in Table 7.2. The QSYSINC-provided ILE RPG definition for format MBRL0100, Member Names, is in Figure 7.3. Figure 7.4 shows a program which simply DSPLYs the member names found in the source file QRPGLESRC. Figure 7.5 then incorporates the use of QUSLMBR in the sample program FIG4_2, which reorganizes any file members that contain deleted records beyond a certain percentage.

Table 7.2. List Database File Members, QUSLMBR
ParameterDescription

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