|
I think you need the ADDLFM command. First, CRTDUPOBJ the physical files into the destination, then the logicals. Then remove all members from the logicals. Then ADDLFM, where you can specify the physicals on which to build the logicals. The 2nd item from the following bit from the CL manual entry on CRTDUPOBJ suggests why you've had problems: ======================================================================= 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 phys-ical 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. ======================================================================= David Wright wrote: > > Unfortunately, the logicals and physicals are not always in the same > library... And that is where I have been having trouble. > > I may write a CL to move all of my physicals into the same library for my > TST environment... > Then I can CRTDUPOBJ all of my logicals into the same library... > > Maybe that will work :) > > Thanks for the ideas.... > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. -- Vern Hamberg Would you like to see a challenging little arithmetic puzzle that might get you or your kids or grandkids more interested in math? Go to <http://cgi.wff-n-proof.com/MSQ-Ind/I-1E.htm> Sillygism-- Something is better than nothing. Nothing is better than a ham sandwich. Ergo Something is better than a ham sandwich.
As an Amazon Associate we earn from qualifying purchases.
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.