Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
![]() Description z/OS MVS Programming: Sysplex Services Reference SA38-0658-00 |
|
A WRITE_DATA request allows you to write data from the storage areas specified by BUFFER or BUFLIST and/or ADJAREA to a data entry in the cache structure. (A data entry is storage in the coupling facility cache structure comprised of one or more data elements where the system stores a data item. For more information, please see the z/OS MVS Programming: Sysplex Services Guide.) The NAME parameter identifies the data item that will be, or has already been, introduced to the structure. Once introduced to the structure, NAME also references the structure resources (the directory entry and data entry) allocated for that data item. You can use the WRITE_DATA request to either:
To register or update your interest in a data item, you must specify an index into your local cache vector (VECTORINDEX) to be associated with the data item in the structure. This index identifies a vector entry that cache services uses to indicate both your interest in the data item and the validity of your locally cached copy of the data item. Having registered interest in a data item means that you have a valid copy of the data item in your local cache buffer. When another user updates the data item in the structure, cache services will update the data item's associated vector entry, thereby deregistering your interest in the data item and invalidating your locally cached copy. Cache services is responsible for deregistering your interest in a data item whenever another user updates the data item in the structure. You are responsible for maintaining the association between the entry in your local cache vector and the copy of the data item in your local cache buffer. You are also responsible for upholding any serialization protocols and procedures established to manage access to this shared data. For structures allocated in a coupling facility of CFLEVEL=5 or higher, you can request that interest be deregistered in the entry specified by OLDNAME without registering interest in the entry specified by NAME. The WHENREG parameter allows you to specify that the data be written
only if you have already registered your interest in the data item:
(To have a registered interest in the data item, the entry must already
exist in the structure.)
You can write either changed (CHANGED=YES) or unchanged (CHANGED=NO) data to the cache structure. If you write changed data (cache copy is different from permanent storage copy) you must assign the data item to a cast-out class (COCLASS). You must assign both changed and unchanged data items to a storage class (STGCLASS). For structures allocated in a coupling facility with CFLEVEL=3
or lower, BUFFER or BUFLIST is required and ELEMNUM must be 1 or greater.
For structures allocated in a coupling facility with CFLEVEL=4 or
higher,
You also have the option to invalidate other users' local copies of the data (CROSSINVAL) and to obtain the cast-out lock (GETCOLOCK), if necessary. For structures allocated in a coupling facility of CFLEVEL=5 or higher, the VERSCOMP keyword allows you to specify a value that is to be compared with the version number associated with the entry being processed. The VERSCOMPTYPE keyword is used to define how the comparison is to be performed. If a version comparison mismatch occurs, processing terminates with no change to the structure. If a version comparison is successful, you can update (or choose not to update) the value of the entry version number by specifying the VERSUPDATE keyword. For structures allocated in a coupling facility of CFLEVEL=9 or higher, the ASSIGN keyword on an IXLCACHE REQUEST=WRITE_DATA,WHENREG=NO request allows you to specify that the system is to suppress the creation of a new directory entry when an existing directory entry is not found. For more information, see z/OS MVS Programming: Sysplex Services Guide. ![]() ![]() ![]() |
![]() |