Sorry... I am pretty new to this I should have stated the following.
We are using version 7 on OS/390. I tried what you stated with no luck. I did some research, and it seams the row_number() function is not suppported.
Please let me know if I am wrong, or if there is another way.
Thanks again.