Fetch Unique Record and Lock it

Jan 17 2007 7:18 AM
Hi All,

I would like to have a code snippet, which should do the following tasks:

1.  Fetch a random record, which is not being fetched by anyone in the multiuser environment.
2.  Lock exclusive use to disable others use the same record for any purpose.

My advance thanks to those who help me out in this effort.

Thanks.