How to execute DB2 utilities remotely
sysproc.admin_cmd('<command>') remotely
To run DB2 utilities remotely you have to use the procedure below:
sysproc.admin_cmd('<command>')
Examples:
call sysproc.admin_cmd('runstas on table <schema_name>.<table_name> and indexes all')
call sysproc.admin_cmd(''reorg table <schema_name>.<table_name>)