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

Accessing VSAM file in Batch and CICS prog at a same time


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kartik krishna

New User


Joined: 03 May 2008
Posts: 2
Location: hyd

PostPosted: Wed May 21, 2008 1:48 pm
Reply with quote

hello,


i am having a problem with accessing a VSAM file. I have a VSAM KSDS . i am using this file in my batch prog.The same file is used by 1 more person in a CICS online program.Now the problem is once the person access the vsam file using the browse command in his cics program, I cannot open the file.It gives an error msg that file is already in use.Though the person has performed end browse,ended his transaction and logged out of cics region i am not able to open it through ditto ( vsam browse) or cannot run my batch prog.

Can anybody give me a solution for this problem.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed May 21, 2008 1:54 pm
Reply with quote

NO icon_biggrin.gif
- not that we do not know how, but we do not know anything about Your standards

sharing VSAM datasets is heavily installation dependent,
ask Your support
- I am adamant to give suggestions without knowing the environment an the standards
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 21, 2008 2:29 pm
Reply with quote

Do you have SMStvs installed - an IBM pay for product that allows CICS & batch to share VSAM files.
Back to top
View user's profile Send private message
kartik krishna

New User


Joined: 03 May 2008
Posts: 2
Location: hyd

PostPosted: Thu May 22, 2008 11:44 am
Reply with quote

hi ,

i have got a simple solution for the prob.Actually i was only reading from the file in both batch and online prog.One of a senior member advised me to define the VSAM cluster with shareoption(2,3).And it worked for me.

The description given by him is as follows

Use SHAREOPTIONS(2 3) while defining the VSAM Cluster using IDCAMS.

Note: The share option "2,3" is very similar to the "1,3" option, but it does not provide read integrity. In other words, it is possible for a read user to access the same control interval that another user is updating, thus losing read integrity. There is no problem in updating with this option because VSAM ensures that only one user has a control interval for update.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 22, 2008 11:02 pm
Reply with quote

Hello,

Quote:
but it does not provide read integrity
This may also be known as a "dirty read". One problem with a dirty read is that a process can retrieve values that will not "balance" because at the time of the read, only part of a multi-record update has been done.

Can your process can tolerate some out-of-balance condition?

Successful execution may not mean valid data. . .
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top