It would be nice if GT.M supported $Increment - Similar
to Cache or DSM.
Logged In: YES
This is under consideration for implementation later this
year (2003). Meanwhile, for constructs of the form
$INCREMENT(^x) use either TStart () Set ^x=^x+1 TCommit, or,
if you have access to all the places where ^x may be
modified, then protect them with an M lock, along the lines
of Lock +x Set ^x=^x+1 Lock -x.