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 FunctionsDescriptionThe $ZUTIL(68,32) function performs two process-specific operations:• It specifies how the $ZDATE function behaves when it receives invalid input.• It specifies the default range of valid dates for $ZDATE. (This provides backwardcompatibilitywith ISM.)$ZUTIL(68,32) only affects the behavior of $ZDATE; the other date and time functions areunaffected.This system-wide default behavior can be configured using the $ZUTIL(69,32) function.For further details on altering the system default for this switch, see $ZUTIL(69,32). Theinitial system default setting of $ZUTIL(68,32) is 0 for all <strong>Caché</strong> products. The initial defaultsetting of $ZUTIL(68,32) is 1 for all ISM products.Invoking $ZUTIL(68,32) without specifying n returns the current switch setting.ParametersnThe boolean value that specifies $ZDATE behavior. 0 specifies <strong>Caché</strong>-style behavior; 1specifies ISM-style behavior. The system default setting is 0.NotesCalling $ZUTIL(68,32)When you create a new process, its $ZDATE behavior is initialized from the current settingof $ZUTIL(69,32). Calling $ZUTIL(68,32) overrides this behavior for the current process.Changing the setting of $ZUTIL(69,32) affects only processes subsequently created, notexisting processes.Setting the Behavior for Invalid DatesAn invalid date is either not a positive integer, or is not a value within the range of valid dates,as specified above.$ZUTIL(68,32,0) causes $ZDATE to issue the error message or if you submit an invalid date. The behavior can be overriddenby supplying an erropt parameter to the $ZDATE call.$ZUTIL(68,32,1) causes $ZDATE to return the null string if you submit an invalid date.This behavior is set for any $ZDATE function call, regardless of the number of parameters.620 <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!