SiouxCityElvis
Programmer
Why would I get a clean compile to with code as the following shows, but yet the file does NOT get deleted?
OPEN INPUT TEST-FILE
blah blah blah code code code
CLOSE TEST-FILE
DELETE FILE TEST-FILE
I'm using RMCOBOL - 85 Version 8 on Linux. I get no runtime nor compile time errors.
I'm displaying the file path and file name and it is accurate.
Page 356 of the language ref manual states the following conditions must be met in order for a successful file deletion to occur:
• The file is not in the open mode.
• The file was not previously closed with lock during this execution of the program.
• The file exists.
• The runtime file system supports file deletion.
• The file is not protected from deletion by a mechanism of the runtime file system.
• The fixed file attributes specified for the file match the actual fixed file attributes of
the existing file.
I figure if one of the above is not met, it would be evident during execution or compile of the program, but maybe I'm misunderstanding something here. I'm running the program logged in as root on linux.
Thanks.
-David
OPEN INPUT TEST-FILE
blah blah blah code code code
CLOSE TEST-FILE
DELETE FILE TEST-FILE
I'm using RMCOBOL - 85 Version 8 on Linux. I get no runtime nor compile time errors.
I'm displaying the file path and file name and it is accurate.
Page 356 of the language ref manual states the following conditions must be met in order for a successful file deletion to occur:
• The file is not in the open mode.
• The file was not previously closed with lock during this execution of the program.
• The file exists.
• The runtime file system supports file deletion.
• The file is not protected from deletion by a mechanism of the runtime file system.
• The fixed file attributes specified for the file match the actual fixed file attributes of
the existing file.
I figure if one of the above is not met, it would be evident during execution or compile of the program, but maybe I'm misunderstanding something here. I'm running the program logged in as root on linux.
Thanks.
-David