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.

System and Other Functions$ZUTIL(69,0)Sets undefined variable default handling system-wide.$ZUTIL(69,0,n)$ZU(69,0,n)ParametersnA numeric code specifying how to handle undefined variables system-wide.Description$ZUTIL(69,0) is used to specify a system-wide default behavior for handling undefinedvariables. Setting n changes this behavior for local variables, process-private globals, andglobal variables systemwide; it has no effect on special variables.$ZUTIL(69,0) only affects variables invoked by subsequent processes; it does not affect thecurrent process. To set handling of undefined variables for the current process, use the$ZUTIL(18) Undefined Variable Behavior function.The value you assign to the variable n becomes the system-wide default behavior for allsubsequently initiated processes. The native default setting is 0, which specifies that allundefined variables result in the error message.Invoking $ZUTIL(69,0) without specifying n returns the current switch setting.The system-wide default behavior is configurable. Go to the System Management Portal,select System Configuration, select Advanced Settings, on the pull-down Category list select<strong>ObjectScript</strong>. View and edit the current setting of UndefVarBehavior. The default is 0.Setting $ZUTIL(69,0) overrides the System Configuration default; it does not change thedefault setting.ParametersnA numeric code that specifies how <strong>Caché</strong> treats an undefined variable:634 <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!