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!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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