kumar26fl Beginner
Joined: 08 Apr 2010 Posts: 14 Topics: 9
|
Posted: Wed Nov 17, 2010 12:25 pm Post subject: Tape dataset contention in JCL/DFSORT |
|
|
I am using this JCL to copy data from a tape dataset to a DASD dataset. The jcl works fine. However, if there is another job that is running and using the input tape dataset name, my job waits till the other job completes it stating 'contention with the other job' for the tape datasets.
Is there anyway, that my job can also be processed concurrently using the same input tape dataset while some other job is also running it. I know for sure that no other jobs are updating or writing it. The other jobs are also just reading it. Doesn't disp=shr allows multiple jobs to share and read the tape datasets?
Code: |
//SORT1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=<<input tape datasetname>>
// DISP=(SHR,KEEP,KEEP),DATACLAS=TAPEONLY,UNIT=AUTO,
// VOL=(,,,255),DCB=BUFNO=30
//SORTOUT DD DSN=<<output dasd datasetname>>,
// DISP=(NEW,CATLG,DELETE),
// DATACLAS=LARGE,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT,VTOF,BUILD=(5,80)
/*
|
|
|