[Migrated content. Thread originally posted on 10 February 2012]
Hello I have a web site ASP.Net with cobol program, this program calls RMCobol dll and it works but it gives me file status 9A, this file status is not documented in the help and I couldnt work with files in the RMCobol program.
COBRT065 File locked (Recoverable)
You have tried to open a file which has already been locked, or opened for output by another user. Alternatively, you have tried to lock or open for output a file which another user already has open.
Your program can inform the system operator (if there is one) that it is unable to access this file and should wait until the other user has finished using the file and closes it. You should then be able to continue to run your program.
Is it possible that the file is locked by another process?
Do you get this same file status on any file or just a particular one?
Can you open the same file in a non ASP.NET program like a console application?
How are you specifying the filename?
Are you specifying a full path or are you trying to write to the current directory?
This might not be allowed if you are trying to create the file in the bin folder as this usually only has read-only/execute permissions.
Are you running under the Visual Studio Development web server or under IIS?
Form used with file status
Native RMCobol dll program in 3 parts
Program aspx.cbl showing boton "crear"
Boton crear (open out'put file)
Program aspx.cbl showing fields definition