Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
Accessing VSAM file in Batch and CICS prog at a same time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Accessing VSAM file in Batch and CICS prog at a same time
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Wed May 21, 2008 1:54 pm    Post subject: Reply to: Accessing VSAM file in Batch and CICS prog at a sa
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 21, 2008 2:29 pm    Post subject:
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    Post subject: got a solution for the prob
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

Site Director


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

PostPosted: Thu May 22, 2008 11:02 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us