I am using DB2 9.7 and Data Studio/ Web Console 4.1 on windows... I am running a runstats utility on all tables using admin_cmd procedure.. But I am not able to run it as it has mixture of both SQL statement and CLP statements...
CALL SYSPROC.ADMIN_CMD(db2 -x "select 'runstats on table',substr(rtrim(tabschema)||'.'||rtrim(tabname ),1,50),' and indexes all;'from \
syscat.tables where type = 'T' " > runstats.out);
I am running as sql script not DB2CLP script through web console..
I know CALL SYSPROC.ADMIN_CMD ('RUNSTATS ON TABLE db2user.employee ON KEY COLUMNS and INDEXES ALL') work fines as it is on single table .And I want to have script for all tables on systables which has type T.
Please help..I need it urgently
Thanks In Advance
CALL SYSPROC.ADMIN_CMD(db2 -x "select 'runstats on table',substr(rtrim(tabschema)||'.'||rtrim(tabname ),1,50),' and indexes all;'from \
syscat.tables where type = 'T' " > runstats.out);
I am running as sql script not DB2CLP script through web console..
I know CALL SYSPROC.ADMIN_CMD ('RUNSTATS ON TABLE db2user.employee ON KEY COLUMNS and INDEXES ALL') work fines as it is on single table .And I want to have script for all tables on systables which has type T.
Please help..I need it urgently
Thanks In Advance