Hi Amit,
There are several ways to make a drop statement.
Below is an example of creating a drop statement with reference to the sysmaster:systabnames table.
$ echo "unload to drop_tables.sql delimiter ';' select 'drop table '|| trim(tabname) from systabnames where dbinfo('dbspace', partnum) = 'dbs1' and tabname not like 'sys%' and tabname <> 'TBLSpace' and tabname <> '_temptable'" | dbaccess sysmaster
Database selected.
1 row(s) unloaded.
Database closed.
$ cat drop_tables.sql
drop table tab1;
------------------------------
SangGyu Jeong
Software Engineer
Infrasoft
Seoul Korea, Republic of
------------------------------