11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

$ZPOS$ZPOSContains the current file position during the reading of a sequential file.$ZPOSDescription$ZPOS contains the current file position during sequential file reads. If no sequential fileread is in progress, $ZPOS contains 0 (zero). The current file position can be set using the$ZSEEK function.By default, <strong>Caché</strong> handles an end-of-file on a sequential file by issuing an error; it does not set $ZPOS. You can configure this end-of-file behavior in a manner compatiblewith MSM. In this case, when an end-of-file is encountered, <strong>Caché</strong> does not issue anerror, but sets $ZPOS to "" (the null string), and sets $ZEOF to -1.To configure end-of-file handling, go to the System Management Portal, select SystemConfiguration, select Advanced Settings, on the pull-down Category list select <strong>ObjectScript</strong>.View and edit the current setting of SetZEOF. When set to “true” , <strong>Caché</strong> sets $ZPOS to ""(the null string), and sets $ZEOF to -1. The default is “false” , You can also establish thisbehavior system-wide by invoking $ZUTIL(69,40,1) or on the current process by invoking$ZUTIL(68,40,1).$ZPOS is not supported on VMS systems.This special variable cannot be modified using the SET command. Attempting to do so resultsin a error.See Also• READ command• $ZSEEK function• $ZUTIL(68,40) End-of-File Handling for Sequential Files function• $ZUTIL(69,40) End-of-File Handling for Sequential Files function• $ZEOF special variable• Sequential File I/O in <strong>Caché</strong> I/O Device Guide<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 483

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!