MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tape dataset contention in JCL/DFSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Wed Nov 17, 2010 12:25 pm    Post subject: Tape dataset contention in JCL/DFSORT Reply with quote

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)                         
/*                                                               
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Nov 17, 2010 12:45 pm    Post subject: Reply with quote

kumar26fl,

You canNOT. Tapes are sequential and cannot be accessed simultaneously like disk datasets. However using VTAPE may solve some problems but not all.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Wed Nov 17, 2010 5:53 pm    Post subject: Reply with quote

This is nearly always dealt with by proper scheduling. . .

Suggest proper scheduling be set up for these processes.
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group