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



If this library has logical files, you might want to duplicate the physical
files first, THEN the logicals. This is from the V5R1 help:

--begin--
For files, the duplicate object shares the format of the original file.
When a logical file is copied into another library, two cases determine the
basing for the file.  First, if both the logical file and its based-on
physical file are originally in the same library, a duplicate of the
physical file must be created in the new library before a duplicate of the
logical file is created.  After these two duplicates are created, the new
logical file is based on the new physical file.

                                                                    
Second, if the logical file and its based-on physical file are originally in
different libraries, it is not necessary to duplicate the physical file
before duplicating the logical file.  In this case, the duplicated logical
file is based on the same physical file as was the original logical file.
Unlike the first case, even if the physical file is copied into the new
library before the logical file is copied, the duplicated logical file is
based on the original physical file, not on the duplicated physical file.
--end--

I wrote a command to duplicate a data library on our development box; it
uses 2 CLs. The first one gets a list of the objects in a reference library
and duplicates everything except the logical files. The second one
duplicates only the logical files.

I don't know if it's any different on V5R3 or V5R4.


Francis Lapeyre
IS Dept. Programmer/Analyst
Stewart Enterprises, Inc.
E-mail: flapeyre@xxxxxxxx 

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
fu_james@xxxxxxxxxxxxxx
Sent: Tuesday, June 6, 2006 9:02 AM
To: Midrange Systems Technical Discussion
Subject: How to dup files but NO data

We would like to duplicate/restore many files to another library but don't
want any data in the files.
Is there any simple way to do it beside clearing data in the files one by
one?
Thanks in advance.


Best Regards.

James Fu

TDL Group Corp. (Tim Hortons)
Oakville, Ontario
Direct: 905-339-5798
fu_james@xxxxxxxxxxxxxx
Web: http://www.timhortons.com


The information contained in this message is confidential and may be
legally privileged. The message is intended solely for the addressee(s).
If you are not the intended recipient, you are hereby notified that any
use, dissemination, or reproduction is strictly prohibited and may be
unlawful. If you are not the intended recipient, please contact the sender
by return e-mail and destroy all copies of the original message.

L'information contenue dans ce  message est de nature confidentielle et
peut etre de nature privilegiee. Ce  message est strictement reserve a
l'usage de son ou ses destinataires. Si vous  n'etes pas le destinataire
prevu, prenez avis, par la presente, que tout usage,  distribution, ou
copie de ce message est strictement interdit et peut etre  illicite. Si
vous n'etes pas le destinataire prevu, veuillez en aviser  l'expediteur par
courriel et detruire tous les exemplaires du message original.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.