Hi Gil,
How does changing the allocation for SYSUT1 from JCL to DYNALLOC change anything ... they're both non-Exclusive ENQs?

Regards,
David

On 2021-10-13 08:58, Paul Gilmartin wrote:
On Mon, 11 Oct 2021 14:03:11 -0400, David Spiegel wrote:
I am trying to PAX and TRS a zFS.

When I run a Step to PAX followed by a Step to TRS, I get:
pax: //'MY.PAX': EDC5061I An error occurred when attempting to define a
file to the system.
(I tried TAR and got the same result.)
When I run the PAX in one job and the TRS in another job, it works.
Has anyone seen this behaviour? (I'm on z/OS V2.4)

Have you tried any tests to confirm or refute the ENQ conflict hypothesis?
If it's ENQ, try the following change to STEP02:
o Remove "//SYSUT1   DD  DISP=SHR,DSN=MY.PAX"
o Change EXEC to:
     //STEP002 EXEC PGM=IKJEFT01
     //SYSTSIN. DD  *
     ALLOCATE DD(SYSUT) DSN('MY.PAX') SHR
     CALL *(AMATERSE) 'SPACK'
     /*

Here is the JCL:
//STEP001 EXEC PGM=BPXBATCH
//STDOUT   DD  SYSOUT=*
//STDERR   DD  SYSOUT=*
//STDPARM  DD  *
SH pax -wzvf  "//'MY.PAX'" /src/
//STEP002 EXEC PGM=AMATERSE,PARM=SPACK
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  DISP=SHR,DSN=MY.PAX
//SYSUT2   DD  DISP=(,CATLG),
//             UNIT=SYSALLDA,
//             DATACLAS=DCZFSEXT,
//             STORCLAS=SCZFSEXT,
//             SPACE=(CYL,(1000,500),RLSE),
//             RECFM=FB,LRECL=1024,BLKSIZE=27648,
//             DSN=MY.PAX.TRS

-- gil

----------------------------------------------------------------------
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

Reply via email to