今回は&SYSUSERID.について解説します。
/* &sysuserid. */
%put &sysuserid.;

- &sysuserid.はログインIDを自動マクロ変数として取得する。
/* "1" */
%if &sysuserid. = xxxxxxxxxx %then %do;
%put "1";
%end;
%else %do;
%put "2";
%end;

- &sysuserid.はログインIDを自動マクロ変数として取得する。
- &sysuserid.による処理の分岐も可能。
/* "2" */
%if &sysuserid. = aaaaaaaaa %then %do;
%put "1";
%end;
%else %do;
%put "2";
%end;

- &sysuserid.はログインIDを自動マクロ変数として取得する。
- &sysuserid.による処理の分岐も可能。