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

Reg; VSAM share options in CICS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Wed Oct 14, 2009 4:34 pm
Reply with quote

Hi,

The scenario is as below, I am trying to read a VSAm file and update an online (CICS), through a batch cycle process.We are unable to access the files when the batch process is in progress,is there a way I can use the VSAm files even when the batch cycle executes.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 14, 2009 4:35 pm
Reply with quote

What are the SHAREOPTIONS on the file?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Oct 14, 2009 4:48 pm
Reply with quote

I think that you might need to investigate DFSMStvs for sharing between batch and CICS.
Back to top
View user's profile Send private message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Wed Oct 14, 2009 4:52 pm
Reply with quote

Hi Robert,

The shareoption is (1,3) in our case.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 14, 2009 5:06 pm
Reply with quote

The 1 means:
Quote:
OPT 1
The data set can be shared by any number of users for read processing, or the data set can be accessed by only one user for read and write processing.
so by the very definition of the file, the behavior you are seeing is the behavior you want.

If you want to be able to read the file in CICS while the batch process is updating it, you must use SHAREOPTIONS(2 3) at a minimum. And be aware that the CICS region will not be able to read any records in the control interval being updated in batch.
Back to top
View user's profile Send private message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Wed Oct 14, 2009 5:26 pm
Reply with quote

As expat told I was just analysing on DFSMStvs,It says...

Can be dynamically enabled DFSMStvs (Transactional VSAM Services) enables batch jobs and CICS online transactions to update shared VSAM data sets concurrently.

DFSMS Transactional VSAM Services (DFSMStvs) is an optional z/OS feature that enables batch jobs and CICS online transactions to update shared VSAM data sets concurrently. Multiple batch jobs and online transactions can be run against the same VSAM data sets, and DFSMStvs helps ensure data integrity for concurrent batch updates while CICS ensures it for online updates.

So we have some thing which can be done concurrently.How can we implement this?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Oct 14, 2009 8:14 pm
Reply with quote

You purchase it from IBM, and then follow the installation procedures.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Oct 14, 2009 9:02 pm
Reply with quote

You can write an Batch EXCI program, which LINKS to a user-written CICS program in the target region, which can access the VSAM file. However, all of the associated links and other requirements, must be previously defined.

Be aware, EXCI should be used for minimum access.

It's cousin, ECI, is somewhat faster, but using either is not recommended for high-volume.

Earl may have a recommendation.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Tue Oct 20, 2009 12:50 pm
Reply with quote

Hi all,

Thanks for all your help.
We are doing further analysis on how we can accomplish the same through ECI programs.Will update you on the progress.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top