[Migrated content. Thread originally posted on 18 March 2004]
If I encounter an error 99 in a Windows environment, I really need to know WHO has a lock on a particular record. It seems like I would be able to do this in a Unix/Linux environment with the C$LOCKPID routine. Is there anyway to do this in Windows? We moved our programs over from a Wang Laboratories system and we were able to do this very easily. Has anyone turned on logging/rollback in order to find out this information?Page 1 / 1
[Migrated content. Thread originally posted on 18 March 2004]
If I encounter an error 99 in a Windows environment, I really need to know WHO has a lock on a particular record. It seems like I would be able to do this in a Unix/Linux environment with the C$LOCKPID routine. Is there anyway to do this in Windows? We moved our programs over from a Wang Laboratories system and we were able to do this very easily. Has anyone turned on logging/rollback in order to find out this information?There is a sample program available (ACUCOBOL-GT source) that illustrates how to use this API to
a) enumerate open files:
- On a specific machine
- In a specific directory (including subs)
- For a specific user
b) Send a message to that user
c) Force a closure of the file (bad, bad)
Ask your tech support contact for demo source on this, or yell here if not.
Note that this API is only available in the Widechar mode, which makes it a bit tricky to understand. If you want to go deeper into this stuff, you should consider attending our Advanced Windows programming training.
[Migrated content. Thread originally posted on 18 March 2004]
If I encounter an error 99 in a Windows environment, I really need to know WHO has a lock on a particular record. It seems like I would be able to do this in a Unix/Linux environment with the C$LOCKPID routine. Is there anyway to do this in Windows? We moved our programs over from a Wang Laboratories system and we were able to do this very easily. Has anyone turned on logging/rollback in order to find out this information?There is a sample program available (ACUCOBOL-GT source) that illustrates how to use this API to
a) enumerate open files:
- On a specific machine
- In a specific directory (including subs)
- For a specific user
b) Send a message to that user
c) Force a closure of the file (bad, bad)
Ask your tech support contact for demo source on this, or yell here if not.
Note that this API is only available in the Widechar mode, which makes it a bit tricky to understand. If you want to go deeper into this stuff, you should consider attending our Advanced Windows programming training.
[Migrated content. Thread originally posted on 18 March 2004]
If I encounter an error 99 in a Windows environment, I really need to know WHO has a lock on a particular record. It seems like I would be able to do this in a Unix/Linux environment with the C$LOCKPID routine. Is there anyway to do this in Windows? We moved our programs over from a Wang Laboratories system and we were able to do this very easily. Has anyone turned on logging/rollback in order to find out this information?There is a sample program available (ACUCOBOL-GT source) that illustrates how to use this API to
a) enumerate open files:
- On a specific machine
- In a specific directory (including subs)
- For a specific user
b) Send a message to that user
c) Force a closure of the file (bad, bad)
Ask your tech support contact for demo source on this, or yell here if not.
Note that this API is only available in the Widechar mode, which makes it a bit tricky to understand. If you want to go deeper into this stuff, you should consider attending our Advanced Windows programming training.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.