Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using the Version Number to Serialize Data Entry Operations z/OS MVS Programming: Sysplex Services Guide SA23-1400-00 |
|
By adhering to a protocol of updating the version number when you
update a cache entry's contents, you can avoid corrupting or deleting
changes made to the entry by other users. For instance, you could
establish the following procedure for updating data entries:
Note that the use of VERSCOMP is needed to ensure that updates to the version number requested through the VERSUPDATE keyword are not processed multiple times as a result of XES internal request redrive logic. When VERSCOMP is requested along with VERSUPDATE to update the version number, then if the initial execution of the request succeeds, any subsequent internal redrive of the request will fail due to a version number miscompare, preventing multiple updates from occurring on the request. Conversely, if the initial execution of the request was unsuccessful, any subsequent internal redrive of the request will be able to execute successfully and update the version number only once. In either of these cases, if the request is internally redriven
and experiences a version number miscompare on the redrive, a return
and reason code of IXLRSNCODESTATUSUNKNOWN will be returned. This
reflects the fact that it is not known whether the observed version
number miscompare:
If the version number comparison fails, the write request is not performed and you must start the update process again after re-reading the current data entry. |
Copyright IBM Corporation 1990, 2014
|