InterSystems IRIS Data Platform 2019.2  /  ObjectScript Reference  /  ObjectScript Special Variables

ObjectScript Reference
Previous section           Next section
InterSystems: The power behind what matters   

Contains the current routine name.
$ZNAME contains the name of the routine executing on the current process. Routine names are case-sensitive. If no routine is currently executing, $ZNAME contains a null string.
This special variable cannot be modified using the SET command. Attempting to do so results in a <SYNTAX> error.
To return the routine name for a specified process, use a %SYS.ProcessQuery class method, as shown in the following example:
   WRITE ##class(%SYS.ProcessQuery).%OpenId($JOB).RoutineGet()
The $ZNAME value can be set by the any of the following commands:

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-09-19 06:44:29