View previous topic :: View next topic
|
Author |
Message |
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi all,
Is there any other best way to access VSAM file from CICS ( Which just does a read ) and Batch process ( Updates the vsam file ) simultaneously apart from using RLS option which is not being an option in my shop??
Also this should be achieved without bothering CICS program execution.
Any suggestions or pointers will be really helpful indeed
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Are you expecting that the CICS region will be able to retrieve the updates made by the batch program?
There is a defined interface to allow batch programs access to CICS files (actually, there's even more than one such interface). You would do best by reading up on them. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Quote: |
Are you expecting that the CICS region will be able to retrieve the updates made by the batch program? |
Doesnt RLS option in FCT support this??
I understand RLS is something like SHR (in JCL) which allows others to use the file so probably when it gets overwritten is it not possible to read updated data ?? Please correct my understanding
Since my shop doesnt support I coudnt try that out
Quote: |
There is a defined interface to allow batch programs access to CICS files (actually, there's even more than one such interface). You would do best by reading up on them. |
I am sorry I really dont know the name of the interface so only then I can read about them |
|
Back to top |
|
|
Peter cobolskolan
Active User
Joined: 06 Feb 2012 Posts: 104 Location: Sweden
|
|
|
|
EXCI, EXternal Cics Interface, not to be mixed up with ECI, External Call Interface. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Thanks Peter would try it and get back. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Make up your mind what you want. This
Quote: |
apart from using RLS option which is not being an option in my shop?? |
directly contradicts
Quote: |
Doesnt RLS option in FCT support this?? |
If your site doesn't allow RLS, why do you keep bringing it up? If you're not using RLS, you need to be familiar with how CICS handles data going to and from a file -- for example, there's been more than one post on this forum where someone expected data written by CICS to be immediately available to a batch program and unless the application takes steps to ensure that CICS is flushing the buffers, the data won't necessarily be seen by batch programs for possibly many hours.
The CICS External Interfaces Guide manual is a good place to start reading on the EXCI interface. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Robert,
I believe in this case, the CICS access will be only reads. If i understand the question (and i well may not), will the batch updates be visable to online reads?
Hope i've not provided any confusion/mis-direction.
The good news is that if i have, i can remove it
d |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Dick,
You got it right!! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what you are asking for is a batch update to cause cics to refresh its buffers
(in the case the updated record is in a ci currently in a buffer)
i don't feel like spending the time to research in order to justify or refute the above.
i can only guess, so i will not. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
That will depend upon whether or not the VSAM file is in an LSR pool. From the CICS Performance Guide in the VSAM Tuning section:
Quote: |
Before issuing a read to disk when using LSR, VSAM first scans the buffers to check if the control interval it requires is already in storage. If so, it may not have to issue the read. This buffer "lookaside" can reduce I/O significantly. |
So if you're using LSR, the batch update wouldn't necessarily be seen by CICS, although the manual is not clear about precisely what circumstances would cause a buffer read versus disk access. Either don't use LSR for the file (which may, in turn, cause other performance issues) or do some testing before implementing the situation you're talking about to see how it works in reality. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Looks like lot of reading need to be done ahead
Thanks all |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hello,
Quote: |
Is there any other best way to access VSAM file from CICS ( Which just does a read ) and Batch process ( Updates the vsam file ) simultaneously apart from using RLS |
I think DFSMStvs - (transactional vsam services) allows VSAM sharing between CICS and Batch.
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.
I have no personal experience in using it, just theoritical idea of how it works with coupling facility processors. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Thanks all for your inputs & time very valuable indeed.
Also the design is changed to make sure the file is closed and opened again in FCT after VSAM file is updated |
|
Back to top |
|
|
Jose Mateo
Active User
Joined: 29 Oct 2010 Posts: 121 Location: Puerto Rico
|
|
|
|
Good day to all!
Read up on VSAM share options. Specifing the correct share option you could do what you are asking for. |
|
Back to top |
|
|
|