01-08-2017 05:50 PM
Please, I would like to know the impact of giving for a sas program the name : autoexec.sas (this program is not a "sas file autoexec
is executed immediately after SAS initializes")
Is there any restriction on this name "autoexec" ? It can make a problems ?
01-08-2017 06:04 PM - edited 01-08-2017 06:04 PM
Please, I would like to know the impact of the creation sas program with the name autoexec.sas( but this program is not the autoexec file )
given a sas program the name "autoexec.sas" is it correct ? it can make a matters ?
01-08-2017 07:22 PM
As much as I know there is no restriction or impact to call your program autoexec.sas
which is not the sas autoexec - as long:
1) the program with its path is not mentioned in the configuration file
2) nor in the exec sas command line
BTW, any program with any name can be used at exec sas command line or be called
through the sas configuration file in order to initiate sas environment - usually contains
LIBNAMEs, FILENAMEs, system options and predefined options - and you can add any
desired code besides.
01-08-2017 07:26 PM
The name autoexec.sas isn't of functional relevance but it's a naming convention SAS uses OOTB for .sas files executed during SAS invocation.
I'd consider it a bad practice but yes, you could also call another file autoexec.sas if you want to confuse people.
01-08-2017 11:37 PM
Creating a sas program with name- autoexec.sas should not be a problem. the file -autoexec.sas that sas runs automatically is defined by the administrator and it's reference is there in sas, however the file you will create won't be run automatically, unless you want it to.
We are also using one such autoexec.sas which we have created for one specific project and run it manually, before you we want to get it to that project.
Hope that helps!
01-09-2017 01:39 AM
Since SAS (if started without the -autoexec commandline option) will automatically use any autoexec.sas in the current directory (from which SAS was called), I would NEVER name a file like that, unless it is meant to be used as an autoexec.