Rob,
I was considering the restore directly into Lib B, however, I need review object create dates ensure none are older.
Yes, Lib A is just a holding area, it actually is restored from a savf.
No PF or LF to be concerned with.
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Tuesday, May 06, 2014 7:11 AM
To: Midrange Systems Technical Discussion
Subject: Re: Need to move all objects from lib A to lib B in batch mode with a replace option if the object already exists
Assuming that if Lib B has these objects:  X, Y, Z and Lib A has these objects:  U, V, W, X and after the move Lib B should have:  U, V, W, X, Y, Z and Lib A should be empty
Then I would suspect that a save followed by a restore then a clrlib would be your best bet.  The restore should have an option to replace existing objects.  Keep in mind what ramifications there may be if 'U' is a LF based off of 'V' if you evaluate other techniques.
And if Lib A is just a holding area for objects to be posted into B then you have be sure that no one posts data while you are in progress. Concern would be the object was inserted between the save and the clrlib. 
Allocating the library exclusively during the run is one possible option.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to:  2505 Dekko Drive
          Garrett, IN 46738
Ship to:  Dock 108
          6928N 400E
          Kendallville, IN 46755
http://www.dekko.com
From:   "Steinmetz, Paul" <PSteinmetz@xxxxxxxxxx>
To:     "'Midrange Systems Technical Discussion'" 
<midrange-l@xxxxxxxxxxxx>
Date:   05/05/2014 05:44 PM
Subject:        Need to move all objects from lib A to lib B in batch mode 
with a  replace option if the object already exists
Sent by:        "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I'm looking for a solution to move all objects from lib A to lib B in 
batch mode with a replace option if the object already exists.
When done interactively, I've always used STRPDM option 2, option 11=Move, 
gives ability to replace if it already exists.
CPYLIB will only work if the object does NOT exist.
TAATOOL MOVALLOBJ is looking like my best choice thus far.
A concern that I must still deal with is if the Lib A object is older than 
the Lib B object.
Thank You
_____
Paul Steinmetz 
IBM i Systems Administrator 
Pencor Services, Inc. 
462 Delaware Ave 
Palmerton Pa 18071 
610-826-9117 work 
610-826-9188 fax 
610-349-0913 cell 
610-377-6012 home 
psteinmetz@xxxxxxxxxx 
http://www.pencor.com/
As an Amazon Associate we earn from qualifying purchases.