The @USERNO is the pid.

For @LOGNAME, execute a LISTUSER and find the @USERNO = USRNBR column and then 
the corresponding USRNAME value is your @LOGNAME.

If it's a lock you could probably save the trouble of the STATUS() by just 
executing a GETREADU() and that would give you the pid and userid (as well as 
other info like how long its been locked and from what term type) just by 
matching the file and key columns.

---- Manu Fernandes <[email protected]> wrote: 
> Hi all,
> 
>  
> 
> When I perform a READU ... LOCKED ... 
> 
> I can use the STATUS() to retrieve the USERNO which maintain the
> requested lock.
> 
>  
> 
> Into BASIC, from a USERNO value, how to retrieve the @LOGNAME and the
> @PID ?? 
> 
>  
> 
> Any idea ?
> 
> Manu
> 
>  
> 
>  
> 
>  
> 
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to