The SYSPROCESSNAME function
returns the process name associated with the process id you supply
as an argument. You can use the value returned from the SYSPROCESSID
function as the argument to SYSPROCESSNAME. If you omit the argument,
then SYSPROCESSNAME returns the name of the current process.
You can also use the
values stored in the automatic macro variables SYSPROCESSID and SYSSTARTID
as arguments to SYSPROCESSNAME.