Functions and CALL Routines |
Returns the process ID of the current process.
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;
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.