Running SAS Jobs with JAMS

Windows Command Procedure Method

JAMS can execute SAS programs using the Windows Command Procedure Execution Method.

Below is an example of an SAS job-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

SAS Execution Method

As an alternative, you can create a SAS execution method from within JAMS. This allows the source tab of a Job definition to contain the contents of your SAS program.

  1. Select the Execution Methods shortcut from the Menu.
  2. Click the Add button from the Control Bar to open the Add an Execution Method dialog.
  3. In the Add an Execution Method dialog, give the Execution Method a Name, Description (optional), and Base Method.
    NOTE: Use the Command Base Method for SAS.
  4. Click OK. By default, JAMS will open the full Execution Method Definition dialog when the Execution Method is initially saved.
  5. Edit the Parameters, Template, Properties, and Job Properties as necessary.
  6. Save and Close the Execution Method.

JAMS VBScript Execution Method

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