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.

Routine, Debugging, and Other Commandsexecute the command if the postconditional expression is false (evaluates to zero). For furtherdetails, refer to Command Postconditional Expressions in Using <strong>Caché</strong> <strong>ObjectScript</strong>.nspaceAny valid string expression that evaluates to the name of the new namespace. nspace can bean explicit namespace or an implied namespace. In either case, it must be specified as a quotedstring.Namespace names are case-insensitive. <strong>Caché</strong> always displays explicit namespace names inall uppercase letters, and implied namespace names in all lowercase letters.An implied namespace specifies the namespace by system name and directory. There are twoforms:• "^^dir" (if the namespace directory is on the current system)• "^system^dir" (if the namespace directory is on a remote system)For dir, specify a directory path or an OpenVMS file specification. For example:ZNSPACE "^^c:\Cache51\Mgr\CacheTemp"W $ZNSPACEExamplesThe following example assumes that a namespace called "accounting" already exists. Otherwise,you receive a error.From the programmer prompt:USER>ZNSPACE "Accounting"ACCOUNTING>By default, as shown in this example, the <strong>Caché</strong> Terminal prompt displays the currentnamespace name. Namespace names are always displayed in uppercase letters.The following example tests for the existence of a namespace, then sets the current namespaceand the <strong>Caché</strong> Terminal prompt either to the specified namespace or to USER:398 <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!