Consider...

Invoking the lock by calling a sub.  In the sub, do the lock... but also save 
to a new FILE... the pertinent info... user_id,  program, file, date, time, 
etc.  When the lock is released, have another companion sub to delete the 
record from the FILE.

--Bill

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Andy Krause
Sent: Monday, April 30, 2012 4:55 PM
To: U2 Users List
Subject: [U2] User ID of a LOCKED record

I am trying to notify a user of a locked record so they can ask the person 
locking that record to GET OUT.

 

Is there a simple way to retrieve the user ID given the port number in a BASIC 
program?  The only method I have found is to call !GET.USERS and then loop 
through the USER.INFO param comparing port numbers until I find the user and 
pull their user ID from there.  

 

Thanks in advance.

 

Andy Krause



 

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to