Guardian Procedure Calls Reference Manual
Condition Code Settings
indicates that GETCRTPID failed, or that no such process exists, or that the process exists but it is
terminating.
< (CCL)
indicates that GETCRTPID completed successfully.= (CCE)
does not return from GETCRTPID.> (CCG)
Considerations
• Passing the process ID to OPEN
The process ID returned from GETCRTPID is suitable for passing directly to the file-system OPEN
procedure (if expanded to 12 words and blank-filled on the right).
• An application acquiring its own process ID
An application that is running at a low PIN can acquire its own process-id by passing the
results of the MYPID procedure to the GETCRTPID procedure:
CALL GETCRTPID ( MYPID, MY^PROCESSID );
The PID of a process is NOT shorthand for the process ID. It is a term for the cpu,pin for a
process.
• High-PIN processes
You cannot use GETCRTPID for high-PIN processes because a high PIN cannot fit into cpu,pin
or process-id.
Example
CALL GETCRTPID ( PID , PROCESS^ID );
656 Guardian Procedure Calls (G)