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 VariablesA structured system variable name, or SSVN, is a nonscalar system variable that is organizedlike a global variable. SSVNs allow you to write portable programs that can retrieve informationabout system data. The same <strong>Caché</strong> <strong>ObjectScript</strong> code can retrieve system data informationfrom any <strong>Caché</strong> implementation using structured system variables.Each SSVN has a structure where subscript values are any of the following:• Entity identifiers• Literals• Attribute keywords.You provide information about entities by providing values for subscripts which are identifiersand for attribute nodes.SSVNs use the circumflex and dollar sign (^$) as a standard prefix followed by:1. An optional (extended syntax ) specification of the namespace about which you wantinformation2. One of a designated list of names.You then follow the name with one or more expressions in parentheses. These expressionsare called subscripts. The syntax is as follows:^$[|namespace|] ssvn_name(expression)Generally, you cannot use SET and KILL commands for structured system variables becausethey do not necessarily have data values. The information that structured system variablesprovide is often the existence of specific subscript values. In most cases, you can use the$DATA, the $ORDER, and the $QUERY functions to examine subscript values.<strong>Caché</strong> supports the following structured system variables:• ^$GLOBAL• ^$JOB• ^$LOCK• ^$ROUTINE<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 501

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

Saved successfully!

Ooh no, something went wrong!