The only way to compare objects is by generating the DDL. The was to extract this is with db2look, but this tool generates the objects according to the creation time, thus the order could not be the same.
Also, you can extract the DDL of an object via a stored procedure. In this way, you can generate a set of objects, and then check the result.