1

Is there a possibility to deploy or redeploy a SAS job (Data Integration Studio) via a shell script ?

Also is there a way to create its SPK file via script ?

Allan Bowe
  • 12,306
  • 19
  • 75
  • 124
Lastwish
  • 317
  • 10
  • 21

3 Answers3

1

You can deploy DI jobs from commandline, see here: http://support.sas.com/documentation/cdl/en/etlug/65807/HTML/default/viewer.htm#p1jxhqhaz10gj2n1pyr0hbzozv2f.htm

Stig Eide
  • 1,052
  • 7
  • 14
  • In my case, the SAS software is installed in Windows, and the SAS server is in Unix. All the deployed jobs and other information are in the Unix server. The link provided suggests to alter certain files in the windows environment, will this work correctly ? – Lastwish Feb 11 '15 at 07:21
  • Yes, this will work, You can deploy jobs to a UNIX server from a Windows client. The documentation is very weak, and the configuration is complex, so expect to spend some time getting it to work ;) – Stig Eide Feb 12 '15 at 09:56
0

I have imported and exported objects into SAS DIS via shell script use this sas ExportPackage utility. I personally find it way more convenient as compared to window method. However, for it to work you need to have X-windows Environment, i used Xming for it. As for deploying Jobs, never tried it.

0

To redeploy jobs DI Studio versions 4.901 and higher have a DepoyJobs tool which is designed to perform this function: read more in the SAS documentation. It is available on the server. Older versions had a similar but much more restrictive client tool using ant.

Also see Paper 1067-2017 An Introduction to the Improved SAS® Data Integration Studio Batch Deployment Utility on UNIX by Jeff Dyson, The Financial Risk Group, which gives a run through on how to use it.