SYSJOBID Automatic Macro Variable

Contains the name of the current batch job or user ID.
Type: Automatic macro variable (read only)

Details

The value stored in SYSJOBID depends on the operating environment that you use to run SAS. You can use SYSJOBID to check who is currently executing the job to restrict certain processing or to issue commands that are specific to a user.