I tried the alcobj command as you suggested Sam.
Apparently it only works for database files.
Perusing apis now..... . . .
ALCOBJ OBJ((MRPRODO/DRP540FM *FILE *EXCL))
Cannot allocate or deallocate DRP540FM in library MRPRODO.
Additional Message Information
Message ID . . . . . . : CPF0984 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 01/28/19 Time sent . . . . . . : 13:07:01
Message . . . . : Cannot allocate or deallocate DRP540FM in library
Cause . . . . . : The user specified a file for allocation or
which is not a data base file. Only data base files can be allocated or
Off the top of my head...
Maybe ALCOBJ *EXCL and if it fails it is in use. (Don't forget to DLCOBJ
if it succeeds.)
Or maybe the APIs on object locking may be needed.
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.
This thread ...
Re: How can i test, from rpg, if a display file is in use?, (continued)
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact