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.

Structured System VariablesDescriptionYou can use the ^$LOCK structured system variable as an argument to the $DATA,$ORDER, and $QUERY functions to return information about locks in the current namespaceor a specified namespace on the local system.ParametersnspaceThis optional parameter allows you to specify a global in another namespace by using extendedglobal reference. You can specify the namespace name either explicitly, or by specifying animplied namespace. The namespace name must be specified as a quoted string. Namespacenames are case-insensitive. You can use either bracket syntax [“USER”] or environmentsyntax |“USER”|. No spaces are allowed before or after the nspace delimiters. You can usethe $ZNSPACE special variable to determine the current namespace, the $ZUTIL(90,10)function to determine if a namespace is defined, and the ZNSPACE command to change thecurrent namespace. For further information on extended global references, see Global Structurein Using <strong>Caché</strong> Multi-Dimensional Storage.lock_nameAn expression that evaluates to a string containing a lock variable name, either subscriptedor unsubscripted, for use with the LOCK command.ExamplesThe following examples show how to use ^$LOCK as an argument to the $DATA, $ORDER,and $QUERY functions.As an Argument to $DATA$DATA(^$|nspace|LOCK(lock_name))^$LOCK as an argument to $DATA returns an integer value that specifies whether the lockname exists as a node in ^$LOCK. The integer values that $DATA can return are shown inthe following table.Value010MeaningLock name information does not existLock name information exists508 <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!