Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to access a Tape file Simultaneously by two jobs.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to access a Tape file Simultaneously by two jobs.
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    Post subject:
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    Post subject: Re: How to access a Tape file Simultaneously by two jobs.
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: 1452
Location: Chicago, IL

PostPosted: Sun Sep 17, 2006 12:19 am    Post subject: Re: How to access a Tape file Simultaneously by two jobs.
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    Post subject: Use IEBEGNER
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    Post subject:
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: 755
Location: Germany

PostPosted: Wed Sep 20, 2006 7:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us