Ok; in my earlier reply I misread the Subject: line, "with copying"
as "without copying".  So:

On 2015-10-05 13:32, Klan, Rob (RET-DAY) wrote:
> 
> 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'
>
Replace "/tmp" with wherever you really want to start.

> //         SET PAX2='./*.*'
>
Beware.  This skips invisible files.  I'd use:

// 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) 
>  
Shared DASD may eliminate the need for FTP.

> Read it 
> 
> //         SET PAX1='sh cd /u/play; pax -rvf'
> //         SET PAX2='./test.txt'
>
I believe this will restore only files matching the pattern "test.txt".
Better might be:

// SET PAX2='.'  or even:
// SET PAX2=''

> //S3      EXEC PGM=BPXBATCH,
> //             REGION=0M,
> //             PARM='&PAX1 //\''CICS.BKUP\'' &PAX2'
>
Read carefully the options concerning restoring timestamps, ownership
and permissions.

> //STDOUT   DD  SYSOUT=*
> //STDERR   DD  SYSOUT=*

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to