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



Is DLTLIB and RSTLIB not an option and if so is it any faster for you?

-Matt

On Sep 25, 2018, at 6:38 AM, Mohammad Tanveer <surgum@xxxxxxxxx> wrote:

Yes it looks like CLRLIB is doing some of the task (triggers, constraints
etc)... but why it takes so much time ?

Its more like rebuilding a libary from a backup of another system.

1. System A --> library TSTDTALIB --> Developers can add/remove objects
in it during development/testing..

on a periodic basis... we have to reset the TSTDTALIB on SYSTEM A from a
backup of another system.

2. System B --> libary PRDDTALIB --> Need to restore on System A without
keeping anything on SYSTEM A in TSTDTALIB.





On Tue, Sep 25, 2018 at 7:32 AM Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
wrote:

First question is why clear it when it would take quite some time to
rebuild?

Consider clearing physical files and leaving the objects behind since you
more than likely rebuild it anyway?

Are there constraints/triggers to delete first causing the system to work
really hard to get rid of objects? Do it with a CL instead.

Consider deleting all the dependent files before trying to delete the
physical files. Like:

For each physical in the library:


DSPDBR FILE(&PLIB/&PFILE) OUTPUT(*OUTFILE) +

OUTFILE(QTEMP/QADSPDBR) OUTMBR(*FIRST *replace)

MONMSG MSGID(CPF3012)

OVRDBF FILE(QADSPDBR) TOFILE(QTEMP/QADSPDBR)

READ: RCVF

MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(DLTPF))

DLTF FILE(&WHRELI/&WHREFI) /* Dependent files */

GOTO READ

DLTPF:

DLTF &PLIB/&PFILE


This code works really fast on most physical tables.


--
Jim Oberholtzer
Agile Technology Architects


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Mohammad Tanveer
Sent: Tuesday, September 25, 2018 7:21 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Is there a faster way to clear a library

It takes an hour or so to clear the library with around 900+ objects mostly
data files and LFs.. we are looking to do it quickly..

Regards
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe,
or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=9bsZoas3g9jpy1c56uA5St9s8WgyEFN9mqIaO_07YLQ&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=PEIYrCnPwzOQWnL_WAzfaukED3Ikd0SL1zjNuvUPDeY&e=.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.proofpoint.com/v2/url?u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=lLjUM5-rYU7THLJ9Fsx77F_i7cCNVJ-EQ8Dfx3shWCE&e=

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=9bsZoas3g9jpy1c56uA5St9s8WgyEFN9mqIaO_07YLQ&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=PEIYrCnPwzOQWnL_WAzfaukED3Ikd0SL1zjNuvUPDeY&e=.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://urldefense.proofpoint.com/v2/url?u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=lLjUM5-rYU7THLJ9Fsx77F_i7cCNVJ-EQ8Dfx3shWCE&e=

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=9bsZoas3g9jpy1c56uA5St9s8WgyEFN9mqIaO_07YLQ&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=PEIYrCnPwzOQWnL_WAzfaukED3Ikd0SL1zjNuvUPDeY&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.proofpoint.com/v2/url?u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=_8rGJiUpP-XWf5DEZbhBUQUSvbFCKDEUim68ODw5698&s=lLjUM5-rYU7THLJ9Fsx77F_i7cCNVJ-EQ8Dfx3shWCE&e=

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.