DATA Step, Macro, Functions and more

Does SAS in batch mode run sasv9_local.cfg?

Accepted Solution Solved
Reply
Contributor
Posts: 38
Accepted Solution

Does SAS in batch mode run sasv9_local.cfg?

Hi,

we are running SAS jobs in production via the sas command in batch mode.

sas -sysin <SCRIPT> -autoexec <AUTOEXEC_FILE> -log <LOGDIR+LOGILFE>

Does this command run the sasv9_local.cfg file automatically, so that OPTIONS like memsize=x, bufno=y etc.(which are included in the .cfg file) are set every time a job is executed?

Or do we need to specify such options in the sas command itself, e.g.

sas -sysin <SCRIPT> -autoexec <AUTOEXEC_FILE> -log <LOGDIR+LOGILFE> -memsize 512M -bufno 10

Thanks a lot,

Thomas


Accepted Solutions
Solution
‎07-31-2012 10:03 AM
SAS Super FREQ
Posts: 708

Re: Does SAS in batch mode run sasv9_local.cfg?

Posted in reply to thomash123

hi

In order to see which configuration files are used, you can run the following code:

proc options option=config;
run;

The output looks like this:

CONFIG=( "C:\SAS93\SASFoundation\9.3\sasv9.cfg" "C:\SAS93\SASFoundation\9.3\nls\en\sasv9.cfg" )

                   Specifies a SAS configuration file.

This will give you the information whether your sasv9_local.cfg is used.

you can always specify a custom config file at SAS invocation like this:

sas -sysin <SCRIPT> -config <CONFIG-FILE> ...

View solution in original post


All Replies
Contributor
Posts: 22

Re: Does SAS in batch mode run sasv9_local.cfg?

Posted in reply to thomash123

Dear

You can use your own configuration or defines your values of the options SAS by default is use the config file of the installation

-memsize 15G -batch -noterminal

-CONFIG " ...."

You can have a look at :http://www.sascommunity.org/wiki/Batch_processing_under_Windows or look at the documentation SAS it depends also of your OS.

Solution
‎07-31-2012 10:03 AM
SAS Super FREQ
Posts: 708

Re: Does SAS in batch mode run sasv9_local.cfg?

Posted in reply to thomash123

hi

In order to see which configuration files are used, you can run the following code:

proc options option=config;
run;

The output looks like this:

CONFIG=( "C:\SAS93\SASFoundation\9.3\sasv9.cfg" "C:\SAS93\SASFoundation\9.3\nls\en\sasv9.cfg" )

                   Specifies a SAS configuration file.

This will give you the information whether your sasv9_local.cfg is used.

you can always specify a custom config file at SAS invocation like this:

sas -sysin <SCRIPT> -config <CONFIG-FILE> ...

Contributor
Posts: 38

Re: Does SAS in batch mode run sasv9_local.cfg?

Posted in reply to Bruno_SAS

Awesome, thank you!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 444 views
  • 3 likes
  • 3 in conversation