Script to Create a Runstats Script
Crating a little Runstats Script
db2 connect to <dbname>;
db2 -x "select 'runstats on
table',substr(rtrim(tabschema)||'.'||rtrim(tabname),1,40
),'and indexes all;'from syscat.tables where type = 'T'"
> runstats.sql
db2 connect reset;
Edit runstats.sql to add connect/ correct reset to your database.