Running some random code I found on the internet a few weeks ago has changed the pagesize and linesize defaults of my SAS output window. I don't remember what code it was though unfortunately. The current default pagesize is 15, which is generally way too small.
Does anyone know how to change the default?
I can change this using "options pagesize=80" or something but that only lasts for the current session. I can also change it in the GUI from Tools>Options>Output>Display but any changes won't save to my next session.
Any tips would be much appreciated! This is kind of excruciating. Thanks!
According to the SAS for Windows documentation, pagesize
is controlled in part by the default printer. 15 is the minimum value, so it's possible that there is something wrong with your default printer and/or SAS is doing something odd (such as not finding one). If 'some random code' changed your default printer, you could simply try changing it back (see your SYSPRINT
option).
I believe you can override this in your sasv9.cfg
, commonly located in a path like C:\Program Files\SAS\SAS Foundation\9.4\nls\en\sasv9.cfg
(varying based on what language version of SAS you use and your version, plus installation details), by simply adding -pagesize=80
or whatever you wish the default to be. You also can add options pagesize=80;
to your autoexec.sas (or a new autoexec.sas if you don't have one already); see this paper or the documentation for more details on that.