We wrote a process that monitors all locks on a system based on how long they have been locked with a parameter you start the program with.
e.g. LOCK.MONITOR 5 The code uses the GETREADU() function and it parses the results and puts it into an array. Then displays it on a screen with details of the user the record id etc. We also use the LIST.CONNECT command because we have remote files connected via NFA to see if there are any locks. We also use the LIST.QUEUE it shows who locked it first and the others waiting for it to be released. We also let you do a PORT.STATUS on the PID so you can actually view the files opened and the actual line of a UniBasic program last executed. Finally we let the user (if started as an Admin user) release the lock from the program. We used a lot when we first wrote in troubleshooting deadly embraces which enabled us to pinpoint and solve those locking issues. Questions? Email me below, or call me. Nick Nicholas M Gettino, Director of Professional Services & Support, EnRoute Emergency Systems an Infor Company, Concourse Center 1, 3501 East Frontage Rd, Suite 350, Tampa, FL 33607 -(813) 207-6998 direct, (813) 334-3507 cell, FAX (678) 393-5389 [email protected] or [email protected] _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
