{"id":3468,"date":"2021-07-11T20:39:11","date_gmt":"2021-07-11T18:39:11","guid":{"rendered":"http:\/\/van-maanen.com\/?p=3468"},"modified":"2021-07-11T20:39:11","modified_gmt":"2021-07-11T18:39:11","slug":"deploy-jobs-in-sas","status":"publish","type":"post","link":"http:\/\/van-maanen.com\/?p=3468","title":{"rendered":"Deploy jobs in SAS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/07\/Capture-4-4.png\" alt=\"\" class=\"wp-image-3469\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">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. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/07\/Capture-4-1-1-1.png\" alt=\"\" class=\"wp-image-3470\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It stores the code in a certain location. In my case, this is: C:\\SAS\\DIserver\\Lev1\\SASApp\\SASEnvironment\\SASCode\\Jobs .<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/07\/Capture-4-2-1-1.png\" alt=\"\" class=\"wp-image-3471\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">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:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"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<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I have scheduled this task in the Windows Task scheduler. This task then looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/07\/Capture-4-3-1-1.png\" alt=\"\" class=\"wp-image-3472\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3468","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"http:\/\/van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3468"}],"version-history":[{"count":0,"href":"http:\/\/van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3468\/revisions"}],"wp:attachment":[{"href":"http:\/\/van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3468"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}