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 FunctionsThus, if you issue $ZUTIL(5,current) and then issue OPEN for a sequential file withoutspecifying a namespace, the operating system either:• Finds the file in current• Creates the file in current if the file does not existIf you issue $ZUTIL(5,current) in a subroutine, the original routine finishes; however,routines called are taken from the new namespace, current. When you halt from <strong>Caché</strong>, yournamespace reverts to the one you were in when you entered <strong>Caché</strong>.If you incorporate $ZUTIL(5,current) into a library routine from the system manager'snamespace (%SYS), you give all programmers access to all namespaces regardless of theirUIC or privilege level.When using $ZUTIL(5) to change the current namespace, <strong>Caché</strong> clears the global vectors.However, when issuing a $ZUTIL(5,current), where current is the current namespace (inother words, not changing the namespace), <strong>Caché</strong> does not clear global vectors. If you wishto clear global vectors without changing the current namespace, use $ZUTIL(69,43,1) beforecalling $ZUTIL(5).If you wish to have a process reference the routines in another namespace, without changingthe current namespace, use $ZUTIL(20) or $ZUTIL(39).See Also• ZNSPACE command• $ZUTIL(20) Specify namespace to search for routines function• $ZUTIL(39) Specify namespace to search for % routines function• $ZUTIL(68,43) Disable or Enable Clearing of Global Vectors for the Current Processfunction• $ZUTIL(69,43) Disable or Enable Clearing of Global Vectors System-wide function• $ZUTIL(90,10) Test Whether a Namespace is Defined function• $ZNSPACE special variable• Configuring Namespaces in <strong>Caché</strong> System Administration Guide568 <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!