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.";
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Ready to level-up your skills? Choose your own adventure.