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.

Legacy Commands and Functions$ZUTIL(67,11) (legacy function)Returns the user name of the specified process.$ZUTIL(67,11,pid)$ZU(67,11,pid)ParameterspidThe process ID number.DescriptionThis page describes the legacy function $ZUTIL(67,11), which has been superseded by theSYS.Process class methods. It is described here for compatibility with legacy applications.$ZUTIL(67,11,pid) returns a string containing the name of the user that initiated the specifiedprocess. This is, in most cases, either your own login name (for terminal processes and clientapplications), or SYSTEM.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,11) 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:ZNSPACE "%SYS"WRITE ##CLASS(SYS.Process).%OpenId($JOB).UserNameGet()See Also• $JOB special variable780 <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!