BookmarkSubscribeRSS Feed
klanie73
Calcite | Level 5

Is it possible to code a ”reset SAS session” into a script in SAS Studio, instead of using the F9 button?

 

I need it for some automation, where I would like SAS to reset between scripts.

 

 

2 REPLIES 2
CaseySmith
SAS Employee

The ENDSAS statement may get you close to what you would like to do.  However, note, it will immediately terminate the SAS session that SAS Studio is using without SAS Studio having any forewarning (ex. you won't get back a log or results for code in the same program before the endsas statement).

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

PaigeMiller
Diamond | Level 26

I don't know what the reset in SAS Studio does, but certainly all of these are possible via code:

 

  • delete all temporary SAS data sets
  • reset options back to default
  • erase/eliminate graphics
  • restart the numbering on graphics

and probably other things as well

--
Paige Miller

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

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
  • 2 replies
  • 3400 views
  • 2 likes
  • 3 in conversation