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.

See Also• $ZUTIL(67,5)—Return the routine name of a specified process legacy function$ZNSPACE$ZNSPACEContains the current namespace name.$ZNSPACEDescription$ZNSPACE contains the name of the current namespace. By setting $ZNSPACE, you canchange the current namespace.To obtain the current namespace name:WRITE $ZNSPACEYou can also obtain the name of the current namespace by invoking a system method, asfollows:WRITE $SYSTEM.SYS.NameSpace()Refer to the %SYSTEM.SYS section of the <strong>Caché</strong> Class <strong>Reference</strong> for further details.You can change the current namespace using a ZNSPACE command, a SET $ZNSPACEcommand, or the $ZUTIL(5) function. For UNIX and OpenVMS, the default namespace isestablished as a System Configuration option. For Windows systems, it is set using a commandlinestart-up option.You can use the SET command to change the value of $ZNSPACE. This sets the currentnamespace for the process. Specify the new namespace as a quoted string. You can specifyan explicit namespace ("namespace") or an implied namespace ("^system^dir" or"^^dir").Namespace names are case-insensitive. <strong>Caché</strong> always displays explicit namespace names inall uppercase letters, and implied namespace names in all lowercase letters.If you specify the current namespace, SET $ZNSPACE performs no operation and returnsno error. If you specify an undefined namespace, SET $ZNSPACE generates a error. You can test whether a namespace is defined by using $ZUTIL(90,10).This use of SET $ZNSPACE is identical to the ZNSPACE command.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 479

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

Saved successfully!

Ooh no, something went wrong!