Desktop productivity for business analysts and programmers

Where is SAS config file that sets SAS system option to NOREPLACE?

Reply
Occasional Contributor
Posts: 6

Where is SAS config file that sets SAS system option to NOREPLACE?

I am looking for a configuration SAS file that will have a Replace/Noreplace option setting.  Where in the SAS/Config directory is it?

Thank you!

Contributor
Posts: 23

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to elena_ziemke_capblurcross_com

By default the option REPLACE is enabled. You can use following files to update with NOREPLACE.

 

sasv9_local.cfg : ~/SASHOME/SASFoundation/9.4/ (i.e ~/SASRoot)

 

you can also set this option in autoexec_usermods.sas located at: ~/SASCONFIG/Lev1/SASApp/WorkspaceServer

remember to use the Autoexec option included in sasv9_local.cfg.

 

 

Occasional Contributor
Posts: 6

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to SangramjitPanda

In our test environment we get this message when running SAS processes

WARNING: Data set SASDATA.XXX was not replaced because of NOREPLACE option.   

In production we don't get this message so I was trying to figure out where this NOREPLACE option is set but I can't find it.  I checked sasv9.cfg files in multiple locations but I don't see this option in any of these .cfg files...

Super User
Posts: 24,004

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to elena_ziemke_capblurcross_com

The NOREPLACE option can be set in several places:

  • SAS 9.4: Configuration file,
  • SAS invocation,
  • OPTIONS statement, 
  • SAS System Options window

 

http://documentation.sas.com/?docsetId=lesysoptsref&docsetTarget=n16q7psnp46obtn1hqbni4o7f6qg.htm&do...

Contributor
Posts: 23

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to elena_ziemke_capblurcross_com

Use the below code to identify the location of config files:

 

proc options option=config;
run;

 

In the log, check for the below information:

 

SAS (r) Proprietary Software Release 9.4 TS1M3

CONFIG=(*******)

 

 

Super User
Posts: 24,004

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to elena_ziemke_capblurcross_com

And if you're not an administrator you can use the OPTIONS statement to set this as well.

 

option noreplace;
SAS Employee
Posts: 315

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to elena_ziemke_capblurcross_com

Use the below code to see where SAS is reading the value from:

 

proc options option=replace value;
run;
Super User
Posts: 10,850

Re: Where is SAS config file that sets SAS system option to NOREPLACE?

Posted in reply to elena_ziemke_capblurcross_com

proc options option=config value;run;

Ask a Question
Discussion stats
  • 7 replies
  • 263 views
  • 2 likes
  • 5 in conversation