MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2012

Re: Massive Reorg



fixed

<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





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact