11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$ZUTIL(69,3)SET x=$ZUTIL(69,2),y=$ZUTIL(68,2)WRITE !,"system-wide open mode:",xWRITE !,"current process open mode:",yIF y=0 {SET z=$ZUTIL(68,2,1)WRITE !,"Set the process open mode to:",$ZUTIL(68,2)}ELSE {WRITE !,"Open mode was already set to:",$ZUTIL(68,2)}OPEN "c:\myfiles\seqtest1":("NRW"):5; ...QUITSee Also• $ZUTIL(68,2) — Open Mode for Sequential Files function• OPEN command• Sequential File I/O in <strong>Caché</strong> I/O Device Guide$ZUTIL(69,3)Sets automatic sequential file creation system-wide.$ZUTIL(69,3,n)$ZU(69,3,n)ParametersnA boolean value that specifies whether or not an OPEN command should create anew sequential file if the specified sequential file does not exist.DescriptionIf you attempt to open a sequential file in "W" or "RW" mode but that file does not yet exist,the default behavior (for all platforms except OpenVMS) is for <strong>Caché</strong> to hang until the fileis actually created or the process is resolved by timeout expiration or by calling the RESJOButility. On OpenVMS systems, the default is to create a new sequential file.Invoking $ZUTIL(69,3) without specifying n returns the current switch setting.This configuration default cannot be changed using the System Management Portal.You can use $ZUTIL(69,3) to set a system-wide automatic file creation mode that causes asequential file to be created automatically when a user issues the OPEN command in "W"<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 639

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

Saved successfully!

Ooh no, something went wrong!