How GQSCAN returns resource information

GQSCAN returns the information in the form of resource information blocks (RIB) and resource information block extensions (RIBE), as shown below. For the description of RIB and the RIBE, see z/OS MVS Data Areas in the z/OS Internet library.
iea99rri
In the RIB, the following fields contain information on RIBEs:

If the value in RIBNRIBE is less than the value in RIBTRIBE, you may need to specify a larger area with the AREA parameter.

The number of RIBs and RIBEs you receive for a particular resource depends on the size of the area you provide, and the scope and token values you specify on the GQSCAN macro.