system tables are from an SQL point of view ordinary tables
if You have the proper authorization You can run any query on them
ask Your support to find out if ...
the db2 rexx interface has been enabled
the tso logon procedures and
the mvs library search order has been properly setup
search the forums for "DSNREXX"
google for "REXX DB2 SAMPLES" "DSNREXX SAMPLES"
but, unless You want to run queries with complicated relations between the columns
and/or build commands streams ( for RYO reorg analisys, usually ) ...
spufi or dsntep2 are usually more than adequate