<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scheduling SAS program with UNIX in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396244#M278104</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99774"&gt;@AsSASsin&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If you've got a SAS Grid then you've got LSF (which does all the load balancing on a SAS Grid). If you've got LSF then why are you using CRON instead of LSF?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 10:43:19 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-09-15T10:43:19Z</dc:date>
    <item>
      <title>Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396216#M278103</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to scheduling a SAS program with Cron in UNIX.&lt;/P&gt;&lt;P&gt;The SAS program run with&amp;nbsp;2 sub tasks for a parallel processing.&lt;/P&gt;&lt;P&gt;These sub tasks are basically two sessions with the autosignon and the SAS Grid.&lt;/P&gt;&lt;P&gt;I wrote also a .sh program to start the .sas program, set some option and the path for the log.&lt;/P&gt;&lt;P&gt;When I run the sh from the server there aren't problems and everything works correctly.&lt;/P&gt;&lt;P&gt;If I create a schedule in unix as crontab, the sas program starts correctly but the I cannot initialize the SAS GRID and open the two sessions for the parallel processing.&lt;/P&gt;&lt;P&gt;Why? I cannot understand the cause of this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the message in the log file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Remote session ID Task1 will use the grid service _ALL_.&lt;/P&gt;&lt;P&gt;NOTE: Remote signon to Task1 commencing (SAS Release 9.04.01M4P110916).&lt;BR /&gt;ERROR: Cannot initialize the grid provider module.&lt;BR /&gt;ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;ERROR: Cannot initialize the grid provider module.&lt;BR /&gt;ERROR: Remote signon to Task1 canceled.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396216#M278103</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2017-09-15T09:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396244#M278104</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99774"&gt;@AsSASsin&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If you've got a SAS Grid then you've got LSF (which does all the load balancing on a SAS Grid). If you've got LSF then why are you using CRON instead of LSF?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 10:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396244#M278104</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-15T10:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396245#M278105</link>
      <description>&lt;P&gt;What do you mean by&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the sh from the server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There &lt;EM&gt;has to be&lt;/EM&gt; a difference between the two methods that causes your problem. Look for missing or wrongly set environment variables.&lt;/P&gt;
&lt;P&gt;If you run a shell script from an already running SAS process by using X or similar, you inherit the environment from the SAS process, which has gotten it from it's own startup script (ie the WorkspaceServer.sh)&lt;/P&gt;
&lt;P&gt;Starting Foundation SAS directly from a commandline will miss this environment, and that's what happens from cron.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you also need to take care that the shell script for cron uses the same config and autoexec files that you employ when you succeed.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 10:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396245#M278105</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-15T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396326#M278106</link>
      <description>&lt;P&gt;The main sas program switch the workload in two asynchrone task using the grid.&lt;/P&gt;&lt;P&gt;I have to run the main program...that use the lsf to balance the jobs...right?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 13:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396326#M278106</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2017-09-15T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396340#M278107</link>
      <description>&lt;P&gt;The script .sh is on&amp;nbsp;a shared folder on the cluster.&lt;/P&gt;&lt;P&gt;With a terminal connection(ssh) if I run the sh everything is ok.&lt;/P&gt;&lt;P&gt;If I have to schedule the shell sript every day with crontab (and with the same user) the grid initialization fails.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396340#M278107</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2017-09-15T14:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396416#M278108</link>
      <description>LSF does scheduling as well as load balancing. So like &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; I'm in favour of using that instead of cron.</description>
      <pubDate>Fri, 15 Sep 2017 16:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396416#M278108</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-09-15T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396433#M278109</link>
      <description>&lt;P&gt;Ok how could I have to schedule with lsf? With the schedule manager?&lt;/P&gt;&lt;P&gt;if yes is there a way to avoid that log files are created in the default folder under config/levX?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 17:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396433#M278109</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2017-09-15T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396519#M278110</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99774"&gt;@AsSASsin&lt;/a&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99774"&gt;@AsSASsin&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Ok how could I have to schedule with lsf? With the schedule manager?&lt;/P&gt;
&lt;P&gt;if yes is there a way to avoid that log files are created in the default folder under config/levX?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you've got metadata deployment objects then yes, that would be the easiest way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;is there a way to avoid that log files are created in the default folder&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Changing the defaults sounds like a good idea.&amp;nbsp;Change the log directory path to whatever you like.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you have multiple projects/applications and you want different log directories then simply create a new server. That's a very simple process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15224iAB9E2AF6C8DE027C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have SAS metadata deployment objects then you can still use LSF. As I understand it the LSF license that comes with SAS gives you access to the full LSF functionality with the only restriction that you can only schedule .sas files.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/scalability/platform/index.html&amp;nbsp;" target="_blank"&gt;https://support.sas.com/rnd/scalability/platform/index.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 00:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396519#M278110</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-16T00:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396548#M278111</link>
      <description>&lt;P&gt;Thank you for explanation.&lt;/P&gt;&lt;P&gt;I will try with the LSF to schedule my .sas .&lt;/P&gt;&lt;P&gt;I will notify you soon if it will work correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 07:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/396548#M278111</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2017-09-16T07:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/397059#M278112</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I solved the issue replacing&amp;nbsp;in my&amp;nbsp;sh script the path of the sas executable with the path of the script used in the default DATA step batch server (sasbatch.sh).&lt;/P&gt;&lt;P&gt;After I scheduled it with crontab without problems and now, without create anothere batch server from MC, I have scheduled my sas program (and I can choose the path of the log and pass sysparm values from the shell with no troubling).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for the support.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/397059#M278112</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2017-09-19T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling SAS program with UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/397062#M278113</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99774"&gt;@AsSASsin&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;That's certainly a way to go and may be the right thing to do for your needs.&lt;/P&gt;
&lt;P&gt;Just be aware that crontab is seriously inferior to LSF and that you're missing out on a lot of functionality which would be available to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LFS allows for enterprise level scheduling wherelse crontab is on the level of the Windows Task Scheduler. It just allows for some simple level of automation.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scheduling-SAS-program-with-UNIX/m-p/397062#M278113</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-19T10:17:05Z</dc:date>
    </item>
  </channel>
</rss>

