Skip to main content


Specify the behavior when reading a sequential file and encountering an unexpected end-of-file error.


[Miscellaneous]   SetZEOF=n

n is either 1 (true) or 0 (false). The default value is 0.


When SetZEOF is enabled (n = 1), InterSystems IRIS® data platform sets the special variable $ZEOF to indicate that you have reached the end of a sequential file. When this parameter is not enabled, InterSystems IRIS throws an <ENDOFFILE> error instead

Changing This Parameter

On the Compatibility page of the Management Portal (System Administration > Configuration > Additional Settings > Compatibility), in the SetZEOF row, click Edit. Select SetZEOF to enable this setting.

Instead of using the Management Portal, you can change SetZEOF in the Config.Miscellanous class (as described in the class reference) or by editing the CPF in a text editor (as described in the Editing the Active CPF section of the “Introduction to the Configuration Parameter File” chapter in this book).

To change this parameter for a single process only (as opposed to instance-wide), use the SetZEOF() method of the %SYSTEM.Process class. See the class reference for details.