BookmarkSubscribeRSS Feed
TTMunnings0608
Calcite | Level 5

Good day, 

How can i get change my username in SAS studio. My instructor requires my  username to be my actual name.

4 REPLIES 4
JackieJ_SAS
SAS Employee
Good morning, Are you using SAS Studio through SAS OnDemand for Academics? If so, user names are assigned by the system and cannot be edited by the user. Are you sure your instructor wants you to change your user name and not something else?
hollandnumerics
Pyrite | Level 9

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

 

Philip R Holland
Recent book (see my blog site): "SAS Programming Experiences: A How-To Guide from a Power SAS User"
Rachel_McLawhon
SAS Employee
What a neat trick, @hollandnumerics!
ballardw
Super User

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 490 views
  • 3 likes
  • 5 in conversation