Default setting and default alignment on SAS output

Running some random code that I found on the internet a few weeks ago resized the pages and stripped the defaults of my SAS output box. I don't remember exactly what code was, unfortunately. The current default page size is 15, which is usually too small.

Does anyone know how to change the default?

I can change this using "options pagesize = 80" or something similar, but only for the current session. I can also change it in the GUI under Tools> Options> Output> Display, but any changes will not be saved in my next session.

Any advice would be much appreciated! It's kind of excruciating. Thank!

+3


source to share


2 answers


According to the Windows SAS documentation , it is pagesize

partially controlled by the default printer. 15 is the minimum value, so it is possible that something is wrong with your default printer and / or SAS is doing something odd (for example, not detecting it). If "some random code" changed your default printer, you can simply try changing it (see Parameter SYSPRINT

).



I believe you can override this in your sasv9.cfg

normally found path, for example C:\Program Files\SAS\SAS Foundation\9.4\nls\en\sasv9.cfg

(varying depending on which language version of SAS you are using and your version, as well as installation details) by simply adding -pagesize=80

or whatever you wish the default ... You can also add options pagesize=80;

to your autoexec.sas (or to the new autoexec.sas if you don't already have one); see this document or documentation for more details on this.

+1


source


Your editor settings are stored in the SAS directory. Only 1 SAS session can open / write to this directory at a time. You can find out the location of the directory your SAS session is using by running this code:

proc options;run;

      

... And then find SASUSER

in the magazine.

If you start SAS and try to use a directory SASUSER

that is already in use by another session, it will give you the message:

WARNING: Unable to copy SASUSER registry to WORK registry. Because of this,
WARNING: you will not see registry customizations during this session.

      

Do you see this message when starting SAS? If so, it means that you have another SAS instance open on your computer that has that directory open. You have 2 options:



  • Close all instances of sas.exe on your computer (through the task manager, be sure to check the process names, not just the applications tab), then try making the change again.
  • Install another shortcut to launch sas.exe. In this shortcut, specify a different location SASUSER

    , for example:

    sas.exe -SASUSER "d: \ sas \ profile2.cfg"

Also, I am assuming you have the "Save settings on exit" option. Or, if it is not, you can save the current settings by entering the command save

at the command line.

EDIT:

Some additional places to check that may override any profile settings:

  • Your sasv9.cfg

    file. Run again proc options;run;

    and search sasv9.cfg

    . It will provide you with the location of this file. If the file simply contains a list of other filenames, be sure to open those "included" files and check them.

  • Your autoexec. If your SAS environment specifies an autoexec file to load at startup, make sure it doesn't configure them there. Also, if he uses autoexec file, make sure that you include all the parameters loggin in the first place, when the SAS is loaded: option mprint notes source source2;

    .

  • Try right-clicking on SAS and selecting Run as Administrator. If your profile is in a readable location due to privileges, your settings may not be saved.

  • Look in the Windows Event Log to see if SAS found any errors there.

+2


source







All Articles