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.

$ZUTIL(21)$ZUTIL(21)Returns the location of process-private globals or deletes all process-private globals.$ZUTIL(21,flag)$ZU(21,flag)ParametersflagOptional — A boolean flag. 0 returns the location of process-privateglobals. 1 deletes all process-private globals. The default is 0.DescriptionUse $ZUTIL(21) to handle the process-private globals for the current process. $ZUTIL(21,0)returns the location of the process-private globals database in the form sfn^dir. If no processprivateglobals are defined, this defaults to 15999^0. For further information on System FileNumbers (sfn), refer to $ZUTIL(49). $ZUTIL(21,1) deletes all process-private globals definedfor the current process. It returns 1 upon successful completion, 0 upon error. $ZUTIL(21,1)returns 1 even if no process-private globals were defined.ExampleWRITE !,$ZUTIL(21,0)," before ppgs"SET ^||a=123SET ^||a(1,1)="John Doe"WRITE !,$ZUTIL(21,0)," after defining ppgs"WRITE !,$ZUTIL(21,1)WRITE !,$ZUTIL(21,0)," after deleting ppgs"See Also• $ZUTIL(49) — Obtain database label information function• Variables in Using <strong>Caché</strong> <strong>ObjectScript</strong><strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 581

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

Saved successfully!

Ooh no, something went wrong!