//COPY EXEC PGM=BPXBATCH, // PARM='sh cp /service1/ABC* /service2/testdir/' //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=*
-- Donald Grinsell State of Montana 406-444-2983 [email protected] "Political Correctness is a doctrine fostered by a delusional, illogical minority and rabidly promoted by an unscrupulous press which holds forth the proposition that it is entirely possible to pick up a turd by the clean end." -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Fred Kaptein Sent: Tuesday, August 13, 2013 12:21 PM To: [email protected] Subject: Coping Unix files Hello, I am looking for a JCL sample to copy many unix files from one directory in a ZFS file to a unix directory in another ZFS file. Example: The data set FILE1.ZFS is mounted on /service1 There are many unix files in this directory. I am only interested in copying the files beginning with ABC* There are many of these. The data set FILE2.ZFS is mounted on /service2/testdir/ I want to copy all the files beginning with ABC* from /service1 to /service2/testdir I do not want to copy files that do not begin with ABC* Any assistance would be appreciated. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
