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.

System and Other FunctionsExampleThe following example tests the null subscript mode. If null subscripts are enabled for thecurrent process, it creates some.NullSubsTestSET b=$ZUTIL(68,1)IF b=1 {WRITE !,"null subscripts enabled locally",!UseNullSubsSET ^x("")=99,^x(0)=0,^x(1)=1ZWRITE ^xQUIT }ELSE {WRITE !,"will enable null subscripts"SET y=$ZUTIL(68,1,1) ; enable for current processWRITE !,"null subscripts now enabled locally"GOTO UseNullSubs}QUITSee Also• $ZUTIL(69,1) — Null Subscript Mode System Default function$ZUTIL(68,2)Sets sequential file open mode for the current process.$ZUTIL(68,2,n)$ZU(68,2,n)ParametersnThe boolean value that specifies the process-specific default mode for sequentialfiles on OPEN.DescriptionThe $ZUTIL(68,2) function specifies the open mode for sequential files opened by the currentprocess. When the current process issues an OPEN command for a sequential file, that fileis opened either in read-only mode (R) or read/write mode (RW). Calling $ZUTIL(68,2)specifies this open mode for the current process, overriding the system-wide default setting.On VMS systems, the default value is 1. On all other platforms, the default value is 0.Invoking $ZUTIL(68,2) without specifying n returns the current switch setting.600 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!