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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
Search our Forums:


Back to Top