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.

$ZUTIL(67,12) (legacy function)$ZUTIL(67,12) (legacy function)Returns the name of the system for a client application.$ZUTIL(67,12,pid)$ZU(67,12,pid)ParameterspidThe process ID of a client application.DescriptionThis page describes the legacy function $ZUTIL(67,12), which has been superseded by theSYS.Process class methods. It is described here for compatibility with legacy applications.$ZUTIL(67,12,pid) returns the name of the system on which the client application is runningas a string. If the specified pid is not a client application, $ZUTIL(67,12,pid) return the nullstring.On pre-5.1 versions of <strong>Caché</strong>, the client applications include <strong>Caché</strong> SQL Manager, <strong>Caché</strong>Control Panel, <strong>Caché</strong> Studio, <strong>Caché</strong> Explorer, and <strong>Caché</strong> Configuration Manager. All of these<strong>Caché</strong> client applications appear on the <strong>Caché</strong> Control Panel as routine name %CDSrv0. Thisis also the routine name returned by $ZUTIL(67,5,pid). To determine which client applicationis running as %CDSrv0, invoke $ZUTIL(67,13,pid) to return the name of the executablefile. You can, of course, create your own client applications.The <strong>Caché</strong> Terminal (routine name “shell”) and <strong>Caché</strong> <strong>Documentation</strong> are not client applications.ParameterspidA process ID number. The process ID of the current process is returned by the $JOB specialvariable. The System Management Portal provides a Processes option, which list the pids ofall running processes. If you specify a non-existent process, $ZUTIL(67,12) returns a valueof zero.SYS.Process MethodsYou can get the same process information using methods of the SYS.Process class, as shownin the following example:<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 781

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

Saved successfully!

Ooh no, something went wrong!