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
 

 

Whats the use of SHAREOPTION in vsam

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Wed Feb 21, 2007 5:31 pm    Post subject: Whats the use of SHAREOPTION in vsam
Reply with quote

Hi
Whats the use of shareoption in VSAM file
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Feb 21, 2007 6:25 pm    Post subject:
Reply with quote

It is used to define the degree of sharing or exclusiveness for the dataset.
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Thu Feb 22, 2007 9:08 am    Post subject:
Reply with quote

Hi william.
Thanks for ur reply.

Am the beginner for mainframe.
The definition which is given by u in the high level(not only this post).
Some guys are giving a reply with good examples also.
Even this one line reply will not give any useful information abt SHAREOPTION.
In SHAREOPTION,there are 2 parameters are there.Whats the use of those parameters.
Back to top
View user's profile Send private message
somnath

New User


Joined: 21 Mar 2005
Posts: 18
Location: India

PostPosted: Thu Feb 22, 2007 9:47 am    Post subject: Re: Whats the use of SHAREOPTION in vsam
Reply with quote

The SHAREOPTIONS parameter specifies how the component or cluster can be shared among
users within one system or across systems.

Syntax:
SHAREOPTIONS (Cross-region-value Cross-system-val)
The Cross-region option helps in concurrent data access on a stand-alone system ex: TSO&CICS
The Cross-system helps in data access for multiple computers (Two different computers that are interconnected)
The default is:
SHAREOPTIONS (1 3)
The values of the various possible values for the above are mentioned below with their meanings:
1.Multiple jobs can read only if no update takes place - Complete data integrity
2.Multiple jobs can read and at the same time one job can update - Write, but not read integrity
3.Multiple jobs can read & write simultaneously - No integrity
4.Same as option 3, but refreshes buffer after every read
The Share options 1 & 2 are not allowed for cross-system. For cross-region sharing, each batch job must
have DISP=SHR. For cross system sharing DISP parameter in the JCL is immaterial.
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Thu Feb 22, 2007 12:07 pm    Post subject: Re: Whats the use of SHAREOPTION in vsam
Reply with quote

Hi
Thanks for ur reply.Its very helpful for me
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


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