DB2 runstats script

I want to write a script to run statistics for a DB2 V9 database on AIX. Can anyone please help.

Thanks!