Returns the process id of the current process
Category: Special
SYSPROCESSID ()
The SYSPROCESSID function returns the 32-character hexadecimal id of the current process. This id can be passed to the SYSPROCESSNAME function to obtain the name of the current process.
The following DATA step writes the current process id to the SAS log:
data _null_; id=sysprocessid(); put id; run;
The following SAS Macro Language code writes the current process id to the SAS log:
%let id=%sysfunc(sysprocessid()); %put &id;
Function:
'SYSPROCESSNAME Function' on page 850