Under some circumstances, when you open your query with the
INDEXED-REPOSITION keyword, the value of
CURRENT-RESULT-ROW or
NUM-RESULTS becomes invalid. As explained in
Determining the current number of rows in a query, the results list holds the row identifiers for those rows that satisfy the query and that have already been retrieved.