Running SAS Jobs

Follow

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

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

c:\YourSASPath\sas.exe
  -autoexec d:\sas\autoexec.sas
  -config d:\sas\config.sas
  -nologo
  -log d:\work\logs\pull_sample200102131244.log
  -sysin d:\YourDir\YourProgram.sas

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.

Method_Name_SAS_rev.png

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\config.sas -NOSPLASH

Below is a sample SAS Job:

SAS_Sample_rev.png 

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

Comments