Hi,
You can make use of the derived_stat() built-in directly against systabstats rows to iterate through the indices.
select str(round(convert(double precision,derived_stat(id,indid,"index page cluster ratio")),16),32,8) as ipcr, object_name(id), index_name(db_id(),id,indid) from systabstats
where indid>0
You'll find more info on derived_stat() @ infocenter.sybase.com
Cheers,
Simon