Share options of (2,3) allow one address space to update the dataset and any number to read it. However, it is...
the user's responsibility to provide read integrity. Reading without integrity can cause problems with stale data and incomplete pointers.
Share options of (3,4) allow a dataset to be read and written by any number of users. However, it is up to the application to provide read and write integrity using ENQ or RESERVCE macros to serialize access. Not only is this complicated, it's asking for trouble.
You may also be opening yourself up for performance problems if the dataset is heavily used. One "hot" system could keep other LPARs from getting to the file. However, with the new architecture of storage devices and the development of faster channels and parallel access volumes (PAVs), the days of moving datasets off of heavily used volumes are fading fast.
If you intend to share the dataset for read and write you will have to use the serialization techniques mentioned above. This could turn into a performance problem because enqueuing across LPARs is not cheap. You may also get into a situation where a program hangs up while holding the enqueue, thus shutting all the other readers and writers out.
MORE ON VSAM:
VSAM basics (Oct. 31, 2006)
Virtual Storage Access Method (VSAM) still holds mountains of the world's data sets. This column explains how VSAM works.
CICS-VSAM tuning options
Expert Robert Crawford discusses a user's decreased system performance in relation to its VSAM stats.
Dig Deeper on IBM system z and mainframe systems
Related Q&A from Robert Crawford
For better mainframe capacity planning, how do I convert CPU hours to MIPS? And is there a way to calculate the relationship between MIPS and MSUs? Continue Reading
I have two years of experience in mainframe technology, currently working as a mainframe developer. I want to change to Java technology. Continue Reading
I want to replicate DB2 from the mainframe to an AIX box since it's cheaper and the copy can be used for testing. Is this possible? Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.