This is a version of an expanded LIST.READU EVERY.
It changes the pid for the user name. Slight modifications can be made to
use replace the inode with the file name.
PID.ARRAY = '' ; ID.ARRAY = ''
EXECUTE LISTU CAPTURING EXEC.LINE.OUT
HEADER.LINE1 = TRIM(EXEC.LINE.OUT2)
PM
Subject: RE: [U2] group locks and user nbr's
Doug,
I vote for snip-the-msg-and-say-thanks.
Dave Taylor
Sysmark Information Systems, Inc.
Authorized IBM Business Partner
49 Aspen Way
Rolling Hills Estates, CA 90274
(O) 800-SYSMARK (800-797-6275)
(F) 310-377-3550
(C) 310-561-5200
I was just going to add I think UniData has the STATUS() function. So I test
locks
like:
** Read vendor route selection
READU VREC FROM APVENDOR, VENDNO LOCKED
LOCK.SW= 1
FileString = NULL$
LogFlag= NULL$
CALL LOCK.MSG (FileString, LogFlag, LockMsg) ; LockMsg := Press
Hey all,
Can someone please help me understand the differences between group
locks and record locks? Also are high user numbers (Userno below)
indicative of a phantom process?
*Active Record Locks:
Device Inode Netnode Userno Lmode Pid Login Id Item-ID.
3080194
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of doug chanco
Sent: 19 June 2008 14:18
To: u2-users@listserver.u2ug.org
Subject: [U2] group locks and user nbr's
Hey all,
Can someone please help me understand the differences
between group locks
Hi Doug,
Record locks protect your data records. Group locks protect the internal
pointers within the file.
A user program cannot directly get or release group locks but they come and
go automatically under the covers.
Group locks are of three types:
WR (write): very much like a READU,
@listserver.u2ug.org
Subject: RE: [U2] group locks and user nbr's
Doug
To take the first part of your question:
The lock table is used for application locks like READU and READL locks, and
also for synchronisation locks.
The RD and WR locks are synchronisation locks that control access to a group
Thanks for the response! I was more interested in matching a user to a
lock than the file (I have a program that I can call that will return
the file name if you pass it a inode), what I was hoping for was a
better way of figuring out the user, instead of doing the following:
1. convert the
Doug
But I am still a little confused on what would set a group
lock (I understand the record locks) and why a group lock
would need to be set and does it lock the entire file?
A group in a file contains pointers between records and pointers to overflow
groups. So the group lock is there
PROTECTED] On Behalf Of Martin Phillips
Sent: Thursday, June 19, 2008 10:42 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] group locks and user nbr's
Hi Doug,
Record locks protect your data records. Group locks protect the internal
pointers within the file.
A user program cannot directly
I don't know if this is very elegant, but it matches up the record lock with
a user name:
0020 LOOP
0021 LOOP.COUNTER += 1
0022 *DISPLAY LOOP.COUNTER
0023 IF LOOP.COUNTER GT 100 THEN EXIT
0024 TRY.AGAIN =
0025 READVU FIELD1 FROM VOC.FILE,VOCLIB,1
Doug,
As Brian mentioned, a group lock is asserted to maintain integrity of the
group while the group is being updated, as the order of the items within
group may change due to deletes and changes.
Here is generic routine I use to perform a readu and resolve who has the
record locked - and send
Chanco [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Thursday, June 19, 2008 12:08 PM
Subject: RE: [U2] group locks and user nbr's
snip
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
13 matches
Mail list logo