SYSPROCESSNAME Automatic Macro Variable

Contains the process name of the current SAS process.
Type: Automatic macro variable (read only)

Example: Using SYSPROCESSNAME to Display the Current SAS Process Name

The following statement writes the name of the current SAS process to the log:
%put &sysprocessname;
If you submit this statement in the SAS windowing environment of your second SAS session, the following line is written to the SAS log:
DMS Process (2)