If your going to use MPEX then you can use there enhanced abortjob command.
In the following example it would abort everyone accessing the file
"CUST.DB.PROD"
%ABORTJOB ACCESSING=CUST.DB.PROD
John Krussel
Nordstrom
[log in to unmask]http://www.nordstrom.com
> -----Original Message-----
> From: Les bureaux de credit du nord [SMTP:[log in to unmask]]
> Sent: Thursday, March 18, 1999 10:08 AM
> To: [log in to unmask]
> Subject: VESOFT QUESTION
>
> Hi, I would like to know how to determine the session # corresponding to a
> file being accessed.
> In doing so, I can log off those people at night that prevents me from
> backing up files because they forgot to log off.
>
> here is what I have so far
>
> WHILE VEFINFO("ACCESSED-FILE").OPENED DO
>
> SETVAR OPER , VEFINFO(`"ACCESSED-FILE").RETURNED-SESSSION
> # what attribute is
> RETURNED-SESSION #
>
> ABORTJOB #S!OPER
>
> PAUSE(5)
>
> END;
>
> ----------------------------------------------------------
>
> Thank you,
>
> Jean Huot
>
> Northern Credit Bureaus Inc
>
>
>