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.

Setting $ZUTIL(69,1) overrides the system configuration default; it does not change thedefault setting.You can also enable/disable this mode on a per-job basis. For information on how to do this,see $ZUTIL(68,1) Null Subscript Mode Process Switch.The setting of the Null Subscript Mode has no effect on the use of a null string as a subscriptindex in $ORDER and $QUERY.ExampleThe following example tests the null subscript mode. If null subscripts are enabled locally,it creates some.NullSubsTestSET a=$ZUTIL(69,1)SET b=$ZUTIL(68,1)IF b=1 {WRITE !,"null subscripts enabled locally"UseNullSubsWRITE !,"system:",a," local:",b,!SET ^x("")=99,^x(0)=0,^x(1)=1ZWRITE ^xQUIT }ELSEIF a=1 {WRITE !,"null subscripts enabled system-wide"WRITE !,"system:",a," local:",bQUIT }ELSE {WRITE !,"will enable null subscripts"WRITE !,"system:",a," local:",bSET ret=$ZUTIL(69,1,1) ; enable system-wideWRITE !,"system:",$ZUTIL(69,1)," local:",$ZUTIL(68,1)SET y=$ZUTIL(68,1,1) ; enable for current processWRITE !,"system:",$ZUTIL(69,1)," local:",$ZUTIL(68,1)GOTO UseNullSubs}QUITSee Also• $ZUTIL(68,1) Null Subscript Mode Process Switch function$ZUTIL(69,1)<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 637

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

Saved successfully!

Ooh no, something went wrong!