You are right,
"ti_ncols>0" doesn't return all tables.
I received a "bit better result" with the following statement,
but there are still some system tables missing
and I am not sure, if "ti_nkeys=0" doesn't return too much entries.
"bitval(ti_flags, "0x0020")<>1" should exclude temptables.
-- database sysmaster
select * from systabnames, systabinfo
where partnum=ti_partnum
and (ti_ncols>0 or ti_nkeys=0 or ti_nrows>0)
and bitval(ti_flags, "0x0020")<>1
I don't have any more ideas to that problem
because I cannot find differences between the missing system tables
and some of the index tables.
Maybe you have to join to the systables of each database.
Good luck.
Best regards
ifx