db2look -d DBname -e -x -o outputfile
this will give all tables,index,views,alias,grants.
for only tablespaces
use this , to get DDl for BPs;Tablespaces
db2look -d DBname -l -o outputfilename
if you want only DB & DBM cfg
use this
db2look -d DBname -f -o outputfilename
Hope this will help you
Lekharaju Ennam
Certified Oracle8i & DB2 UDB DBA