INDEX-INFORMATION attribute of the query object handle
The INDEX-INFORMATION attribute provides data on a dynamic query similar to what XREF provides on a static query. For example, given a dynamic query q1, where the QUERY-PREPARE string is:
FOR EACH customer WHERE customer.custnum < 3, EACH order OF customer,
EACH orderline