Previous Page | Next Page

Automatic Macro Variables

SYSUSERID Automatic Macro Variable



Contains the user ID or login of the current SAS process.
Type: Automatic macro variable (read only)

Example
Using SYSUSERID to Display the User ID for the Current SAS Process

Example


Example 1: Using SYSUSERID to Display the User ID for the Current SAS Process

The following code, when submitted from the current SAS process, writes the user ID or login for the current SAS process to the SAS log:

%put &sysuserid;

A user ID, such as the following, is written to the SAS log:

MyUserid

Previous Page | Next Page | Top of Page