Help using Base SAS procedures

SAS System options

Reply
Contributor
Posts: 22

SAS System options

It was my understanding that with SAS system options (such as ORIENTATION or PAGESIZE), that you could change the option during your SAS session, but that when you restarted, that SAS would return to a default setting. For some reason, though, the system options in place when I start up a new SAS session are the same as what they were at when I ended my previous session. For instance, if I set orientation to LANDSCAPE, then the next time I start SAS, the option in effect is LANDSCAPE.

I haven't tried saving any options settings in a configuration file or an autoexec file or anything like that, so I'm not sure what's going on here. Is there some command or programming statement I can use to restore whatever the SAS factory defaults are for all system options? Is there any way I can get this whole problem to stop happening outside of asking IT to totally reinstall SAS?
Super User
Posts: 10,550

Re: SAS System options

You may have a preference (Tools -> Options -> Preferences in Windows) set for "Save settings on exit".
Contributor
Posts: 22

Re: SAS System options

That option isn't checked, so I don't think it's that.
Super User
Posts: 9,691

Re: SAS System options

Tools -> Options -> System
At right bottom of window ,there is a RESET button,maybe will give you some help.


Ksharp
Contributor
Posts: 22

Re: SAS System options

Unfortunately, that didn't work, either.
Super User
Posts: 10,550

Re: SAS System options

How are you setting the option?
Contributor
Posts: 22

Re: SAS System options

I never save my option settings, so I change settings from the SAS default only on an as-needed basis, like if I need to have the orientation changed, or if I want the missing value of something displayed differently, like this:

option orientation = landscape;

option missing = "0";

I never save those changes, though, so I'm extremely confused as to how I've gotten myself into this situation.
Regular Contributor
Posts: 171

Re: SAS System options

I’m somewhat perplexed why the solutions which were already proposed did not work. One additional alternative is to set all your options the way you want them, use PROC OPTSAVE to save them, and then use PROC OPTLOAD any time you want to reset your options.

[pre]
proc optsave out=sasuser.myoptions;
run;

proc optload data=sasuser.myoptions;
run;

[/pre]
Contributor
Posts: 22

Re: SAS System options

Thanks for that suggestion. I opened up another SAS window while my primary SAS window was already open, thus having SAS use the default options, and I saved those. I tried clicking the "save settings" and closing SAS after loading the saved options. That didn't keep the options back to the saved option settings, though. When I started up SAS again, the orientation was back at landscape.
Regular Contributor
Posts: 171

Re: SAS System options

You could put the PROC OPTLOAD in your autoexec file so that your desired options are loaded whenever you start SAS.
Contributor
Posts: 22

Re: SAS System options

I've never used an autoexec before, but apparently today would be a good day to start. I'll do that. Thanks!
Ask a Question
Discussion stats
  • 10 replies
  • 206 views
  • 0 likes
  • 4 in conversation