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 Profile Log in to check your private messages Log in
 
How to read a VSAM file which is already opened by other

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
pravonline

New User


Joined: 09 Nov 2005
Posts: 2
Location: Germany

PostPosted: Wed Nov 09, 2005 4:54 pm    Post subject: How to read a VSAM file which is already opened by other
Reply with quote

Dear All,

I would like to read a VSAM file which is already opened by a other batch or online jobs or even by the other users, my request is to read that file(to take a backup of those records of a vsam file) which was opened by some other jobs in DISP = OLD, need your suggestions in this regard, Is there any way to read the file in SHR or OLD mode, which is already opened with DISP=OLD by other user, Is it possible to change the DISPOSITIONAL parameter from OLD to SHR dynamically, please guide me out in this, Thanks in Advance
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


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

PostPosted: Wed Nov 09, 2005 5:42 pm    Post subject: Re: [b]How to read a VSAM file which is already opened by ot
Reply with quote

File is already opened with DISP=OLD in other job means exclusive control over file.

Can it be changed to SHR in another job. ...Is it possible.????

Regards,

Priyesh.
Back to top
View user's profile Send private message
pravonline

New User


Joined: 09 Nov 2005
Posts: 2
Location: Germany

PostPosted: Wed Nov 09, 2005 5:45 pm    Post subject: Re: [b]How to read a VSAM file which is already opened by ot
Reply with quote

That is what my question is, i want to change the disp parameter, or else i need to read the file irrespective of disp=old parameter
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Wed Nov 09, 2005 5:56 pm    Post subject: Re: [b]How to read a VSAM file which is already opened by ot
Reply with quote

Quote:
Is there any way to read the file in SHR or OLD mode, which is already opened with DISP=OLD by other user,

No...OLD means Exclusive Control.....

Quote:
Is it possible to change the DISPOSITIONAL parameter from OLD to SHR dynamically

I doubt whether its possible Dynamically changing DISP for a DS engaged with other job as OLD.....What says expert...

Quote:
please guide me out in this

You can change DISP=OLD to DISP=SHR in the earlier job itself, If possible. Means if it does not necessarily require exclusive control like in case of update etc.
Or make some time difference between both the steps.

Regards,

Priyesh.
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Wed Nov 09, 2005 6:29 pm    Post subject: Re: [b]How to read a VSAM file which is already opened by ot
Reply with quote

You cannot access the file which was already opened using DISP=OLD....

Thanks,
Kumar.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

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