IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to access a Tape file Simultaneously by two jobs.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
midhun

New User


Joined: 23 Jul 2006
Posts: 3

PostPosted: Sun Jul 23, 2006 1:58 pm
Reply with quote

Hi,

I have a requirement that I need to run two jobs at same time and two jobs require same Input file which is a Tape file.When I ran the two jobs,the first job is running and the other is in hold until the first gets over and releases the file.Even if I use DISP=SHR option ,there is no use.Please help me out to sort this issue.
Back to top
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Wed Jul 26, 2006 12:27 pm
Reply with quote

Make a second copy of the tape.
Back to top
View user's profile Send private message
midhun

New User


Joined: 23 Jul 2006
Posts: 3

PostPosted: Sun Sep 17, 2006 12:01 am
Reply with quote

Can anybody send the JCL to copy the tape file to a disk,which runs successfully without a space abend.If it abends because of space please explain the procedure to sort the issue.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sun Sep 17, 2006 12:19 am
Reply with quote

Quote:
Can anybody send the JCL to copy the tape file to a disk,

You can use DFSORT's ICETOOL, IDCAMS REPRO, IEBGENER for this.
Search the forum for code... Here is one such topic discussed...
Quote:
which runs successfully without a space abend

It depends on number of input record. You'll have to code SPACE parameter appropriately for that.
Quote:
If it abends because of space please explain the procedure to sort the issue.

Increase SPACE parameter accordingly.
Back to top
View user's profile Send private message
hxmaba

New User


Joined: 11 Sep 2006
Posts: 2

PostPosted: Sun Sep 17, 2006 3:17 am
Reply with quote

SYSUT1 must be the tape file and SYSUT2 must be the new file which should be created on a disk.U need to get the DCB parameters from the JCL which creates the tape file and use the DCB parameters for the new file
Back to top
View user's profile Send private message
shankarravi1984
Warnings : 1

New User


Joined: 15 Sep 2006
Posts: 9
Location: pune

PostPosted: Wed Sep 20, 2006 6:57 pm
Reply with quote

Code:
hi midhum,
                      by default tape memory is private,so only one can access at a time,you can not override this,if it is wrong please correct me.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Sep 20, 2006 7:30 pm
Reply with quote

Hi !

First, user IEBGENER to copy the Tape to Disk.

If the TapeFile is cataloged, then for DiskFile-DCB you can Refer to the
Tape-File-DCB usinf REF Parameter in DCB.

Regards, UmeySan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top