On 29-Jun-2016 14:55 -0500, Paul Nelson wrote:
On 29-Jun-2016 14:40 -0500, Paul Nelson wrote:
Does anybody know the equivalent command in the SQL world?
That's probably it. If I add the index back after a file reorg, will
that set me up for level checks?
Ah. So the inquiry from the OP is regarding an intention to disable
the keyed Access Path (ACCPTH) [maintenance] during a Reorganize
Physical File Member (RGZPFM) against the underlying data?
So perhaps the AccPth of the INDEX is defined UNIQUE, thus preventing
changing the Maintenance (MAINT) attribute? In that case, the DROP
INDEX [or Delete File (DLTF)] can be used after a Save Object (SAVOBJ),
and the Restore Object (RSTOBJ) done afterward -- there could be two
restores, one first without the member, and then another to restore the
member, but there would be no point in so doing.
FWiW the ALWCANCEL(*NO) reorg will already disable a non-unique keyed
AccPth, and move the rebuild until afterward in an async runpty-52
QDBSRV## system job. And a non-unique AccPth could be modified with
Change Logical File (CHGLF) to set the Maintenance (MAINT) attribute to
the special value of *REBLD [¿possibly required?: in conjunction with
RECOVER(*NO)].
Maybe some background about the scenario, to help explain the
reasoning for the approach; perhaps discussion can lead to a different
path.?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.