PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: thenewguy on February 11, 2020, 01:45:49 PM

Title: find files/records extracted by other users?
Post by: thenewguy on February 11, 2020, 01:45:49 PM
I can get a list of the files I have open, and then can tell if they have a record extracted by iterating through the "chn" variable, and using fin(chan_num,"EXTRACT")

I'm wondering if it's possible to do that, but for other users besides yourself? Can I get someone else's chn variable and fin info?

Thanks!
Title: Re: find files/records extracted by other users?
Post by: Mike King on February 11, 2020, 03:59:11 PM
You cannot get access to another processes CHN or other variables.

What are you trying to accomplish?
Title: Re: find files/records extracted by other users?
Post by: thenewguy on February 11, 2020, 04:02:08 PM
Occasionally someone will have a file locked and we'll have to do digging to figure out who it is. It's possible, but sometimes a little time consuming. I was just wondering if it was possible to see who has what file locked from inside pxplus. :)
Title: Re: find files/records extracted by other users?
Post by: Mike King on February 11, 2020, 04:14:58 PM
On Unix/Linux you can check TCB(87) to see which process has the record locked.