HP3000-L Archives

May 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Netnews Server <[log in to unmask]>
Reply To:
Date:
Thu, 2 May 1996 23:06:23 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
"Rudderow, Evan" <[log in to unmask]> wrote:
>Larry Boyd wrote:
>
>>Another interesting 'feature' that I've seen used, is the fact that the
>value of the item
>>you lock on does not need to exist.
>
><snip>
>
>Locking things that don't exist -- doesn't this start to fall under the
>topic of "IMAGE by spite"?
 
Larry is correct. When doing a DBPUT to a detail data set, one can lock at the
record level (DBLOCK mode 5 or 6) on a value that does not currently exist in
the detail. DBLOCK doesn't care if the value exists or not. It just verifies
that the value you are attempting to lock, is not already locked by another
process. By locking a non-existent value, you ensure that no other process will
use that value until your process has called DBUNLOCK. "IMAGE by spite"?...No,
I don't think so. It's more of an "IMAGE by design".
 
Best regards,
Steve Patrick
HP Database Expert Center

ATOM RSS1 RSS2