Running SAS Jobs


JAMS executes SAS programs with the Windows Command Procedure Execution Method.

Below is an example of a SAS Job's Source:

  -autoexec d:\sas\
  -config d:\sas\
  -log d:\work\logs\pull_sample200102131244.log
  -sysin d:\YourDir\

You may also create a custom Execution Method using the Command Execution Method as a base. Modify the Command field in the Execution tab, as shown below.

Check Interactive as SAS.exe causes an interactive pop-up window to appear.

Note: You may have to start the Interactive Services Detection service for an interactive Job to work properly.


Update the Command field of the SAS Execution Method. This way, the Job Definition Source tab contains the contents of your SAS program. We recommend using the example command line in the Command field: 

"C:\Program Files\SAS\SASfoundations\9.2\SAS.EXE" -SysIn "{0}" -config d:\sas\ -NOSPLASH

Below is a sample SAS Job:


SAS Projects (saved as .EGP files) can also be saved as Visual Basic scripts from the SAS Enterprise Guide and executed using the JAMS VBScript Execution Method.


See Also

SAS Options

SAS Support



Have more questions? Submit a request