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 FunctionsSET A="Fred",B="Barney",C="Wilma"WRITE !,$ZUTIL(18,1)WRITE !,"system:",$ZUTIL(69,0)," local:",$ZUTIL(18),!SET D=^||X(A,B,C)SET E=^||X(1,2,"HELLO")ZWRITE D,EWRITE !,$GET(^||X,"^||X is not defined")In the following example, $ZUTIL(18,2) returns a null string for the undefined variable J.WRITE !,$ZUTIL(18,2)WRITE !,"system:",$ZUTIL(69,0)," local:",$ZUTIL(18)WRITE !,$GET(J,"Variable is undefined")WRITE !,J,"No UNDEFINED error issued"See Also• $ZUTIL(69,0) Set Undefined Variable Handling System-wide function• ZWRITE command• $DATA function• $GET function$ZUTIL(20)Specifies the namespace(s) that contains the routine dataset.$ZUTIL(20,new,second,third)$ZU(20,new,second,third)ParametersnewsecondthirdSpecify the primary namespace that contains the routine dataset.Optional — Specify the second namespace to search for routines.Optional — Specify the third namespace to search for routines.DescriptionTo change the source from which you want to draw routines, use this form of $ZUTIL tospecify the namespace that contains the routine dataset in which the routines you want to useare located.Enclose the namespace in double quotes. The namespace you specify can be either an explicitnamespace or an implied namespace. An implied namespace is a directory path or OpenVMS578 <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!