Good day,
How can i get change my username in SAS studio. My instructor requires my username to be my actual name.
Hi TTMunnings0608,
I believe your username is fixed, but you could apply a SAS format to it, so it shows with your full name:
PROC FORMAT;
VALUE $fullname
'hollandnumerics' = 'Philip Holland'
;
RUN;
DATA _NULL_;
LENGTH username $10;
FORMAT username $fullname30.;
username = "&sysuserid.";
PUT username=;
RUN;
Just update the $fullname format to map your SAS Studio username to your full name, and see what happens.
..........Phil
And with the format defined use
%sysfunc(putc(&sysuserid. , $fullname.))
Just about anywhere you would be expected to need the name. If the code would expect to be in quotes, such as Title/footnote statement, filename, or text value then make sure the quotes are double quotes so the macro values resolve.
Title "Exercise One Results by %sysfunc(putc(&sysuserid. , $fullname.)) ";
Or for the truly lazy: something like this
%let sname = %sysfunc(putc(&sysuserid. , $fullname.));
And use the value of &sname:
Title "Exercise Two Results by &sname.";
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Ready to level-up your skills? Choose your own adventure.