There are multiple ways in which we can estimate the size of the DB2 database. Few of them are listed below−
By using inbuilt get_dbsize_info function.
By using DB2 active transaction logs.
The size of the dataset which was used with UNLOAD utility can be checked.
Using STOSPACE utility in JCL as below
//STEP1 EXEC DSNUPROC //SYSIN DD * STOSPACE DATABASE DSNDB01 //*