View previous topic :: View next topic
|
Author |
Message |
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
What are the SHAREOPTIONS on the file? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I think that you might need to investigate DFSMStvs for sharing between batch and CICS. |
|
Back to top |
|
|
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
Hi Robert,
The shareoption is (1,3) in our case. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You purchase it from IBM, and then follow the installation procedures. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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....
Bill |
|
Back to top |
|
|
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
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 |
|
|
|