× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



<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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.