from command line processor, to get the ddl of a table, issue the following command, modifying the parameters in capslock.(username and password is the one you use connecting to the database)
>db2look -d YOUR_DATABASENAME -t YOUR_TABLENAME -a -e -l -x -c -o ddl.out -i YOUR_USERNAME -w YOUR_PASSWORD