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(67,7,pid) returns a string containing the current device name for the specified process.This string consists of the final characters of the device name, up to 32 characters.The device name consists of three parts separated by vertical bars: the device type, the portnumber, and the process ID. For a <strong>Caché</strong> terminal with a process ID of 748, the device namewould be |TRM|:|748. For a <strong>Caché</strong> client application (routine name JOBEXAM or %CDSrv0)with a process ID of 749, the device name would be |TCP|1972|749. 1972 is the defaultport number. The %cmtP routine returns a device name of |TCP|1972; it does not return itsown process ID because this routine responds to client requests by creating client applicationjobs and uniquely identifying them by assigning a process ID number.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,7) 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).CurrentDeviceGet()See Also• $JOB special variable$ZUTIL(67,8) (legacy function)$ZUTIL(67,8) (legacy function)Returns the number of lines executed by the specified process.$ZUTIL(67,8,pid)$ZU(67,8,pid)ParameterspidThe process ID number.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 775

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

Saved successfully!

Ooh no, something went wrong!