docs.intersystems.com
Home / Configuration Parameter File Reference / [Miscellaneous] / FileMode

Configuration Parameter File Reference
FileMode
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Enable/disable writing to a non-existent file.
Synopsis
[Miscellaneous]    FileMode=n
Description
The value n may be 1 or 0:
Suppose InterSystems IRIS encounters an OPEN command such as:
OPEN "file.x":"WS"
When FileMode=1 the new file is created automatically, even though the N parameter is not specified with the OPEN command. The result when FileMode=1 is equivalent to adding the N parameter to each OPEN command, so that:
OPEN "file.x":"WS"
is equivalent to:
OPEN "file.x":"WNS"
On the other hand, when InterSystems IRIS encounters an OPEN command and no N parameter is provided and the file does not already exist, then if FileMode=0 there is no result from the OPEN command except that the process hangs until interrupted.
Examples
FileMode=0
Range of Values
0 or 1. The default value of FileMode is 0.
Management Portal
On the page System Administration > Configuration > Additional Settings > Compatibility, in the FileMode row, select Edit. Choose true (selected) or false (cleared).


Previous section           Next section
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-04-23 15:16:11