Thanks Steve. The thing is I do not know much about Unix Commands and their flags. It will be great if you can send a link of the document that you are mentioned. I looked (clearly in wrong pleases) and could not find much about “pax”. I was going to look more on Monday morning but the if would be a short cut for me if you send me a link to such a document. Thanks! --- On Fri, 8/28/09, Steve Comstock <st...@trainersfriend.com> wrote:
From: Steve Comstock <st...@trainersfriend.com> Subject: Re: to copy directories and to preserve all the attributes To: IBM-MAIN@bama.ua.edu Date: Friday, August 28, 2009, 5:02 PM Shahnaz wrote: > Thanks John but this still did not do what I need (last modified, last >changed, last accessed, created, were all today's date). > I want what 3.3 does copying one PDS to another with Replace option. The >similar members in output PDS will have "last changed dates" of the input >PDS Thanks. My reading of the doc is that if you create the pax file with the -t option, and unwind the file including the flag -p eopx this will do what you want; but I haven't tested it. > --- On Fri, 8/28/09, McKown, John <jmck...@healthmarkets.com> wrote: > > > From: McKown, John <jmck...@healthmarkets.com> > Subject: Re: to copy directories and to preserve all the attributes > To: IBM-MAIN@bama.ua.edu > Date: Friday, August 28, 2009, 2:39 PM > > >> -----Original Message----- >> From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf >> Of Shahnaz >> Sent: Friday, August 28, 2009 1:25 PM >> To: IBM-MAIN@bama.ua.edu >> Subject: to copy directories and to preserve all the attributes >> >> Hi all, Under Unix System Services (z/OS 1.9), how can I copy some >> directories from one to another and preserve all the attributes (i.e., last >> modified, last changed, last accessed, created, etc.). I am using something >> like: "cp -Rp /u/user1/source/* /u/user2/source" >> Thanks > > You need to be root to preserve the ownership and such. I generally use pax > in copy mode: > > pax -rw -pe /from/sub /to/sub > > -- > John McKown Systems Engineer IV > IT > > Administrative Services Group > > HealthMarkets® > > 9151 Boulevard 26 . N. Richland Hills . TX 76010 > (817) 255-3225 phone . (817)-961-6183 cell > john.mck...@healthmarkets.com . www.HealthMarkets.com > > Confidentiality Notice: This e-mail message may contain confidential or > proprietary information. If you are not the intended recipient, please > contact the sender by reply e-mail and destroy all copies of the original > message. HealthMarkets® is the brand name for products underwritten and > issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake > Life Insurance Company®, Mid-West National Life Insurance Company of > TennesseeSM and The MEGA Life and Health Insurance Company.SM Kind regards, -Steve Comstock The Trainer's Friend, Inc. 303-393-8716 http://www.trainersfriend.com z/OS Application development made easier * Our classes include + How things work + Programming examples with realistic applications + Starter / skeleton code + Complete working programs + Useful utilities and subroutines + Tips and techniques ==> Ask about being added to our opt-in list: <== ==> * Early announcement of new courses <== ==> * Early announcement of new techincal papers <== ==> * Early announcement of new promotions <== ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html