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.

<strong>Caché</strong> <strong>ObjectScript</strong> Special VariablesS is setSee Also• OPEN command• USE command• $IO special variable• I/O Devices and Commands in <strong>Caché</strong> I/O Device Guide$ZNAMEContains the current routine name.$ZNAME$ZNDescription$ZNAME contains the routine name of 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 resultsin a error.To return the routine name for a specified process, use a SYS.Process class method, as shownin the following example:ZNSPACE "%SYS"WRITE ##CLASS(SYS.Process).%OpenId($JOB).RoutineGet()The $ZNAME value can be set by the any of the following commands:• ZLOAD command• ZSAVE command• Argumentless ZREMOVE command (sets to a null string)• DO command• GOTO command478 <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!