An IBMer gave me this process, works great moving USS stuff around.
Adjust to your needs. Write it // SET PAX1='sh cd /tmp; pax -wvf' // SET PAX2='./*.*' //MAKEIT EXEC PGM=IEFBR14 //OUTMVS DD DSN=CICS.BKUP, // DISP=(MOD,KEEP,KEEP), // RECFM=U,BLKSIZE=32760, // SPACE=(CYL,(100)), // UNIT=3390 //S3 EXEC PGM=BPXBATCH, // REGION=0M, // PARM='&PAX1 //\''CICS.BKUP\'' &PAX2' (xmit/ftp it) Read it // SET PAX1='sh cd /u/play; pax -rvf' // SET PAX2='./test.txt' //S3 EXEC PGM=BPXBATCH, // REGION=0M, // PARM='&PAX1 //\''CICS.BKUP\'' &PAX2' //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of John McKown Sent: Monday, October 05, 2015 3:12 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Copy a directory structure with copying files. On Mon, Oct 5, 2015 at 1:42 PM, Dave Crowley <dave.crow...@sas.com> wrote: > I need to copy a directory structure of a USS (zFS if this matters) > from one LPAR to another. I looked at "tar" and "pax" and just can't > see a way to do this. I will be changing the high level directory though. > For example The from directory: > /usr/local/productV1/* > pax -wf "//'some.ps.file"' /usr/local/productV1/ > > To: > /usr/lpp/productV1/ > pax -s#local/lpp/ -rf "//'some.ps.file'" This _should_ work. But I have not tried it. pax can write to a sequential data set. I would strongly suggest pre-allocating it with the proper size and DCB information (U/23778 is what I use). > > I was hoping to "unPax" to the new directory with the entire directory > structure. > > Please help a Unix rookie.. > > Dave Crowley > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN