SYSPROCESSID Automatic Macro Variable

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

Details

The process ID is a 32–character hexadecimal string. The default value is null.

Example: Using SYSPROCESSID to Display the Current SAS Process ID

The following code writes the current SAS process ID to the SAS log:
%put &sysprocessid;
A process ID, such as the following, is written to the SAS log:
41D1B269F86C7C5F4010000000000000