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

How to read a VSAM file which is already opened by other


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Wed Nov 09, 2005 5:42 pm
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
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: 1448
Location: Chicago, IL

PostPosted: Wed Nov 09, 2005 5:56 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
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
Search our Forums:

Back to Top