Problem: I need to programmatically access the table space size remaining.
I know that this is given in the DB2 CLP by the command "list tablespaces show detail". What I would like is for my program to query the database and get the answer, just as if it were a normal SQL operation. I have searched the forums and the most I've seen was a reference to the above CLP command (parse the result to get your answer) or RUNSTATS and try and get the information from the system tables (The CLP does not do this nor the db2cc so why should I in this case).
If anyone knows the SQL for getting this data please post it. I am sure a lot of other developers would find it useful.
Thanks,
Paul
I know that this is given in the DB2 CLP by the command "list tablespaces show detail". What I would like is for my program to query the database and get the answer, just as if it were a normal SQL operation. I have searched the forums and the most I've seen was a reference to the above CLP command (parse the result to get your answer) or RUNSTATS and try and get the information from the system tables (The CLP does not do this nor the db2cc so why should I in this case).
If anyone knows the SQL for getting this data please post it. I am sure a lot of other developers would find it useful.
Thanks,
Paul