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 FunctionsDescriptionYou can set the domain ID or dsindex, or return their current values by issuing a call to thisfunction.You must have the %Admin_Manage:Use privilege to execute $ZUTIL(130) functions. Thisfunction can also be invoked by % routines located in the manager's directory. For furtherdetails, refer to the Privileges and Permissions chapter of the <strong>Caché</strong> Security AdministrationGuide.ParametersflagA flag that specifies which $ZUTIL(130) value to set or return:12domain IDdomain index (dsindex)0This parameter is always the number zero (0).valueThe value to set. If no value is specified, $ZUTIL(130) returns the current value of the flag.A domain ID is a string, and thus must be set as a value in quotes. A domain index is aninteger, specified without quotes.ExamplesThe following example returns the current domain ID and the current domain index:SET x = $ZUTIL(130,1,0)SET y = $ZUTIL(130,2,0)WRITE !,"domain ID is ",xWRITE !,"domain index is ",yThe following example sets the domain ID to 1:DO $ZUTIL(130,1,0,"1")SET x = $ZUTIL(130,1,0)WRITE !,"domain ID is ",xThe following example sets the domain index to 1:704 <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!