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

The query returns these attribute values:

q1:INDEX-INFORMATION[1] = "CustNum"
q1:INDEX-INFORMATION[2] = "CustOrder"
q1:INDEX-INFORMATION[3] = "WHOLE-INDEX,OrderLine"

For more information, see the INDEX-INFORMATION attribute in the ABL Reference.

To obtain additional query information and statistics use the QryInfo log entry type. For detailed information see Query information logging.