BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
thomash123
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

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

3 REPLIES 3
lacrefa
Calcite | Level 5

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.

BrunoMueller
SAS Super FREQ

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> ...

thomash123
Calcite | Level 5

Awesome, thank you!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2858 views
  • 4 likes
  • 3 in conversation