getpname()


Return the name of a PSL process with a specified process identifier.

Syntax

getpname([pid])

Parameter

Parameter

Definition

pid

optional integer process identification number The pid value must be an integer.

Description

The getpname() function returns the name of the PSL process with a specified pid. If you do not specify the pid of the process you are looking for, then getpname() returns the name of the current process that is calling the getpname()function. The empty string, " ", is returned by getpname() if there is no process with the specified pid.

Example

The following is an example of the getpname() function:

proc_name = getpname(24); # Returns the name of PSL process 24
current_proc_name = getpname(); # Returns the name of the current PSL process

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*