<snip>
Hi, what's being reorged...all files in a library?
</snip>
Every member, in every file, in every library.
Let me start with QSYS2.SYSPARTITIONSTAT.
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/db2/rbafzcatalogtbls.htm
This is the 'long table name' for QSYS2/SYSPSTAT. If you are using
Query/400 you may have to use the short name.
Let me then move on to
NUMBER_DELETED_ROWS, SYSTEM_TABLE_SCHEMA, SYSTEM_TABLE_NAME,
SYSTEM_TABLE_MEMBER
These are the long column names for
DELETED, SYS_DNAME, SYS_TNAME, SYS_MNAME in QSYS2/SYSPSTAT
Keep in mind this translation
DB2 Old way
SCHEMA LIBRARY
TABLE PHYSICAL FILE
PARTITION MEMBER
So I query this view, and take the results and pipe them through QCMDEXC
into a SBMJOB of RGZPFM. This piping is done by:
ROUTINES.QCMDEXC('SBMJOB CMD(RGZPFM FILE(' || TRIM(SYSTEM_TABLE_SCHEMA) ||
'/' || TRIM(SYSTEM_TABLE_NAME) || ') MBR(' || TRIM(SYSTEM_TABLE_MEMBER) ||
')) JOB(' || TRIM(SYSTEM_TABLE_NAME) || ' ) JOBQ(QS36EVOKE)')
Got it?
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.