Patrik -

We want to create a copy of a data library on a separate partition from our
production data so we would need at least one member to exist in each
file.

A REXX script that checks whether or not an object exists would not help us
since the entire library is being restored to a fresh partition - we
already know that it doesn't exist, we just don't want to restore the
production data to the new partition.

Thanks,

Steve McKay
(205) 585-8424
samckay1@xxxxxxxxx



On Tue, Dec 17, 2019 at 5:01 PM Patrik Schindler <poc@xxxxxxxxxx> wrote:

Hello Steve,

Am 17.12.2019 um 21:46 schrieb Steve McKay <samckay1@xxxxxxxxx>:

On V7R3 - is there a way to SAVLIB/SAVOBJ a library containing files,
data
queues, data areas, etc. on one machine/partition and RSTLIB/RSTOBJ the
library to another machine/partition without restoring the data in the
files, data areas, data queues, etc.?

About files: It's possible to do a savlib and exclude all members. If it
does what you want, dunno. About the rest: Not possible, AFAIK.

Did you think about automating this task by, say, a REXX script or the
like which checks if an object exists? If not, create. If yes, skip and
continue. So you'd have one definition of data and can run it everywhere.
If you want to have these recreated on test, do another REXX script which
deletes everything you want to be recreated.

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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