First of all thank you for the reply.
I think I am close to what Andy is trying to say. Its UDB and version 8.2. Can you provide me with more information about the stored procedure you are referring to.
Just one question for Guy. I know a bit about REORGCHK. Can you please let me know if f4 refers to a need for index reorg. I mean are you asking me query the catalog tables to find where the clusterratio or clusterfactor > 80 for an index and try to do a reorg for that index. Please confirm. In that case what about the formulas for f5, f6, f7 and f8. Will they not need to be considered for index reorg.