On 17 November 2015 at 10:58, Victor Gil <[email protected]> wrote: > Before using this simple schema of STCK+LPAR-Id we had to handle VSAM key > duplicates [by re-trying STCK > until the key was unique]. While the code is still there [just to cover for > unexpected] it never gets executed as we > no longer generate any dups
Did you actually ever get any duplicate keys, or are you just saying that you had to have code to handle the possibility? It seems to me that duplicates are extremely unlikely, given the relative speed of CPUs and I/O devices these days. Sure, I realize that each record doesn't imply an I/O operation; there will be blocking going on. But how long does it take to write out a VSAM block? Less than a microsecond? The clock values from STCKF on any modern machine surely have much greater precision than that. And in any case, doesn't it make sense to let VSAM catch the duplicate key and obtain a new one only then? Tony H.
