All of the advice that you have received so far is good advice.
Sometimes, however, depending on your company's policies, certain things like editing config files aren't always possible.
One other option is to run your program in "batch" mode (instead of interactive). The command varies by environment (Windows, Unix, Mainframe, etc.). Here's an example from Windows where I've created a little .bat file which, when double-clicked, launches my SAS job in batch mode with all the parameters that I have specified:
set env=production
::set env=development
sas -set environment %env% -set lPwd_PASSWORD XXXXXXXX -memsize 32G -work N:\Work -logparm "rollover=session write=immediate" -log C:\Users\XXXXXXXX\Documents\SAS\Pgm\Test\Hive_Grid\logs\Join_Members-tblMMR0323_Restated_MONO_#Y-#m-#d_#H-#M-#s_#p.log -sysin C:\Users\XXXXXXXX\Documents\SAS\Pgm\Test\Hive_Grid\Join_Members-tblMMR0323_Restated_MONO.sas -nostatuswin -noterminal -nosplash -noicon
pause
Some of the parameters I'm using in the above example:
Work. I'm assigning Work to a drive that, in this case, has more space because I have some big files to work with.
Memsize: Again, I'm using big files, so I'm increasing my memory allocation.
Logparm: I'm using "immediate" which means that the log is written too as soon as SAS has log output. Otherwise SAS will buffer the writing to the log. When buffered, you can lose part of the log if the job crashes, and, if you have long running steps, it can take forever for enough log data to get into the buffer to the point where SAS actually writes it to the log. Caution: "Immediate" is less efficient. "Immediate" is a great option for debugging, but once a job is stable, "Buffered" is typically going to give best performance.
Log: I'm using a series of log directives which tell SAS how to dynamically name the log file. Here, I'm adding a system generated data time stamp and the Process ID to the name of the log file.
You don't have to code all of these parameters, Logparm for example is not essential; this is just an example.
All that to say, sometimes it's better to submit via batch when you need to have a little more control over parameters that must be set at start up.
Jim
... View more