Implied Namespace
An implied namespace specifies the namespace by system name and directory path. There are three forms:
-
"^^." for the current namespace. This can be used to change the namespace prompt from an explicit namespace to the corresponding implied namespace.
-
"^^dir" specifying the namespace directory path dir on the current system.
-
"^system^dir" specifying the namespace directory path dir on a specified remote system.
For dir, specify a directory path. This is shown in the following examples:
Windows example:
ZNSPACE "^^c:\InterSystems\IRIS\mgr\user\"
WRITE $NAMESPACE
Linux example:
ZNSPACE "^RemoteLinuxSystem^/usr/IRIS/mgr/user/"
WRITE $NAMESPACE
To return the full pathname of the current namespace, you can invoke the NormalizeDirectory()Opens in a new tab method, as shown in the following example:
WRITE ##class(%Library.File).NormalizeDirectory("")