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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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