Hi,
There is an option of using fetch first 'n' rows only.
Can you push the resultset into a temporary table and then try the fetch first rows only option.
Please also provide more details on your process being followed, and the DB2 version, fixpacks and OS that you are using.
Cheers
Nitin.