Deploying Jobs for Scheduling

Problem

You want to schedule a SAS Data Integration Studio job to run in batch mode at a specified date and time.

Solution

Scheduling a job is a two-stage process:
  • Use SAS Data Integration Studio to deploy the job for scheduling. See Deploy a Job for Scheduling.
  • Use other software to schedule the job for execution. For more information, see Scheduling in SAS.

Tasks

Deploy a Job for Scheduling

Perform the following steps to deploy a job for scheduling:
  1. Right-click the job that you want to deploy. Then, select Schedulingthen selectDeploy in the pop-up menu to access the Deploy for a job for scheduling window. The following display shows the window if you select only one job for deployment.
    Deploy for a Job for Scheduling Window for a Single Job
    Deploy for a Job for Scheduling Window for a Single Job
    By default, the deployed job file (in this case, Extract Balances Job.sas) is named after the selected job. The following display shows the Deploy for a job for scheduling window used to deploy multiple jobs for scheduling.
    Deploy for Scheduling Window for Multiple Jobs
    Deploy for Scheduling Window for Multiple Jobs
  2. When you deploy more than one job, a separate SAS file is created for each job that you select. Each deployed job file is named after the corresponding job.
  3. In the Batch Server field, accept the default server or select the server that is used to store the SAS file for the selected job. The next step is to select the job deployment directory. One or more job deployment directories (source repositories) were defined for the selected server when the metadata for that server was created.
  4. Check the Deployment Directory field to ensure that the deployed job is stored in the appropriate directory. If the wrong directory is displayed, select another director from the drop-down list, or click New to create a new directory if you have permission to create directories on the server.
  5. If you selected one job, you can edit the default name of the file that contains the generated code for the selected job in the Deployed Job Name field of the Deploy for a job for scheduling window. The name must be unique in the context of the directory specified in the Deployment Directory field.
  6. To deploy the job or jobs, click OK.
Code is generated for the selected job or jobs and is saved to the directory that is specified in the Deployment Directory field. Metadata about the deployed jobs is saved to the current SAS Metadata Server. A status window is displayed and indicates whether the deployment was successful. In the Inventory tree, metadata for the deployed job is added to the Deployed job folder. This job is now available for scheduling.