Hi,
Will this one help you? I love unix , so I always do it in bteq, exporting to a file and then do the work. Below script not tested.
select case when tablekind = 'i' then 'show join index '
when tablekind = 'j' then 'show journal '
when tablekind = 'g' then 'show trigger '
when tablekind = 'p' then 'show procedure '
when tablekind = 'm' then 'show macro '
when tablekind = 't' then 'show table '
when tablekind = 'v' then 'show view '
end || trim(databasename) || '.' || trim(tablename) || ' ;' (title '')
from dbc.tables dt
where dt.tablekind in('i','j','g','p','m','t','v')
AND DATABASENAME IN
(
'db1','db2',...
)
and trim(tablename) not like all ('al%','et%','lt%'','uv' etc)
group by ...
order by ...;
Cheers,
Raja
Hi,
Will this one help you? I love unix , so I always do it in bteq, exporting to a file and then do the work. Below script not tested.
select case when tablekind = 'i' then 'show join index '
when tablekind = 'j' then 'show journal '
when tablekind = 'g' then 'show trigger '
when tablekind = 'p' then 'show procedure '
when tablekind = 'm' then 'show macro '
when tablekind = 't' then 'show table '
when tablekind = 'v' then 'show view '
end || trim(databasename) || '.' || trim(tablename) || ' ;' (title '')
from dbc.tables dt
where dt.tablekind in('i','j','g','p','m','t','v')
AND DATABASENAME IN
(
'db1','db2',...
)
and trim(tablename) not like all ('al%','et%','lt%'','uv' etc)
group by ...
order by ...;
Cheers,
Raja