Caché ObjectScript Reference
Contains the ID of the current process.
contains the ID number of the current process. This ID number is the host operating system’s actual Process ID (pid). This ID number is unique for each process.
The ID number for an I/O process (such as a Caché terminal process) is part of the string contained in the $IO
This special variable cannot be modified using the SET
command. Attempting to do so results in a <SYNTAX> error.
Other Information About the Current Process
You can obtain the same current process ID number by invoking the ProcessId()
method, as follows:
You can use $JOB
to obtain the job number for the current process as follows:
This example requires that UnknownUser have assigned the %DB_CACHESYS role.
You can obtain status information about the current process from the $ZJOB
You can obtain the pid of the child process or the parent process of the current process from the $ZCHILD
You can obtain the pids of the current jobs in the job table from the ^$JOB
structured system variable.