You might want to try the OPTIMIZE FOR N ROWS clause; set N to a number which is more typical of a 'first screen of data' implementation which implies similar definition as does *FIRSTIO. Comments provided "as is" with no warranties of any kind whatsoever.

Reply With Quote