Deploy jobs in SAS

One may use the SAS Management Console to deploy SAS jobs. The trick is as follows. One must have a SAS job that could be either created from the SAS programme or could be exported from Enterprise Guide. Let me provide an example of such a programme:

This can be deployed, using in SAS Management Console, option Schedule Manager, right mouse click deploy SAS Datastep programmme. This then provides a possibility to deploy a programme.

It stores the code in a certain location. In my case, this is: C:\SAS\DIserver\Lev1\SASApp\SASEnvironment\SASCode\Jobs .

It also makes the code available as a deployed job. This can then be used as a step in a workflow. This workflow is subsequently listed in the schedule manager.

Ideally, it could the be run from within the schedule manager. An alternative is to create a batch file that can be run as any other programme from a central schuler. This batch programme may look like:

"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -sysin C:\Users\tomva\SynologyDrive\SAS\Hello.sas -log C:\Users\tomva\SynologyDrive\SAS\Hello.log

I have scheduled this task in the Windows Task scheduler. This task then looks like: