<?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: lsf schedular in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189492#M47865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for&amp;nbsp; the response.&lt;/P&gt;&lt;P&gt;For some jobs, they are running fine, but some jobs they are failing due to this pipe error ?&amp;nbsp; Do you think we need to assign any option the programs ?&lt;/P&gt;&lt;P&gt;Appreciaed feedback !&lt;/P&gt;&lt;P&gt;-P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 19:00:38 GMT</pubDate>
    <dc:creator>SAS_1001</dc:creator>
    <dc:date>2014-04-23T19:00:38Z</dc:date>
    <item>
      <title>lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189487#M47860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd like to schedula a SAS program in lsf, could you pl. guide me thorugh the process start-2-end.&amp;nbsp; Let's say I'd like to deploy a SAS job abc.sas in lsf through process manager.&amp;nbsp; How can I do that.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189487#M47860</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-22T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189488#M47861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the general idea of integrating LSF and SAS, is to use the interfaces between those products. Which means that scheduling of jobs and flows are done via the Schedule Manager plugin in Managment Console.&lt;/P&gt;&lt;P&gt;How to do it this way, there is a pretty straight forward description in the on line documentation.&lt;/P&gt;&lt;P&gt;There are also some papers in the subject, just search support.sas.com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 11:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189488#M47861</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-04-23T11:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189489#M47862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotta say, I still don't find the scheduling process to be straight forward.&amp;nbsp; At least not if you're an old-school batch job SAS programmer, used to just scheduling batch jobs via cron.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this the relevant doc for 9.3 is: &lt;A href="http://support.sas.com/documentation/cdl/en/scheduleug/64110/HTML/default/viewer.htm#titlepage.htm"&gt;http://support.sas.com/documentation/cdl/en/scheduleug/64110/HTML/default/viewer.htm#titlepage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I have a .sas file ready for scheduling as a batch job, here are the hoops I job through.&amp;nbsp; Which I post in full hope that someone will point out how bad my process is. : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In DI Studio I create a DI job which includes a single node of user-generated code.&amp;nbsp; That code is an %INCLUDE statement which %includes my .sas program.&lt;/P&gt;&lt;P&gt;2. In DIS I deploy the job for scheduling.&lt;/P&gt;&lt;P&gt;3. In SAS Management Console Schedule Manager I create a flow which consists of the deployed job.&lt;/P&gt;&lt;P&gt;4. In SMC I schedule the flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;phew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surely feels like there should be an easier way to say "Hey SAS Server, please run this .sas file daily at midnight."&amp;nbsp; And likely there is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course there are benefits to having job info in the metadata, even if the end the job is simply a simple command to batch submit a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get into scheduling with LSF, one great tip I picked up at NESUG (sigh) a couple years back is to install Flow Manager.&amp;nbsp; Flow Manager is an LSF app, but SAS provides a stripped down version of it.&amp;nbsp; It's proved very helpful to see what jobs are scheduled, which are running, history, etc. Particularly in a few of cases where I swear I unscheduled a flow (using SMC) and deleted the flow, but somehow it remained scheduled on the LSF side.&amp;nbsp; Deleting the flow via Flow Manager did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 16:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189489#M47862</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-04-23T16:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189490#M47863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. I was able to schedule a job in LSF but getting the following error.&amp;nbsp; When running outside lsf thorugh EG or Base SAS, not getting these errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Insufficient authorization to access PIPE.&lt;/P&gt;&lt;P&gt;ERROR: Error in the FILENAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise would be greatly helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 17:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189490#M47863</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T17:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189491#M47864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get that error somewhere in your SAS code where you are trying to pipe OS commands, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most likely NOXCMD is turned on for your batch server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See eg:&lt;/P&gt;&lt;P&gt;&lt;A href="https://platformadmin.com/blogs/paul/2011/06/noxcmd/"&gt;https://platformadmin.com/blogs/paul/2011/06/noxcmd/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can beg your admin to turn it off, or look for a solution that doesn't rely on OS commands.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189491#M47864</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-04-23T18:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189492#M47865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for&amp;nbsp; the response.&lt;/P&gt;&lt;P&gt;For some jobs, they are running fine, but some jobs they are failing due to this pipe error ?&amp;nbsp; Do you think we need to assign any option the programs ?&lt;/P&gt;&lt;P&gt;Appreciaed feedback !&lt;/P&gt;&lt;P&gt;-P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189492#M47865</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T19:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189493#M47866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe show more of the log from when you get this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the issue is NOXCMD, it will be either on or off for the batch server used for scheduled jobs.&amp;nbsp; So can't change this by setting an option in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put %sysfunc(getoption(XCMD)) ; should show the value of the option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189493#M47866</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-04-23T19:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189494#M47867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The value is being shown here is after running the above %put statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XCMD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I change to noxcmd ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189494#M47867</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T19:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189495#M47868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quenten,&lt;/P&gt;&lt;P&gt;I'm scheduling the jobs through schedule manager and checking the flow from process manager.&amp;nbsp; Jobs are running good in EG but in process manager, they get stuck up.&amp;nbsp; No idea whats going on ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 20:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189495#M47868</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T20:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189496#M47869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;XCMD is what you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you run the %PUT statement in the job you scheduled?&amp;nbsp; Scheduled jobs run on a different server (batch server) than code that you run in EG.&amp;nbsp; So it's possilbe XCMD is allowed on the server where your EG session runs, but not on the batch server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a SAS log file from the scheduled job that shows an error, right?&amp;nbsp; Suggest you show that log. (key parts)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 20:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189496#M47869</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-04-23T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189497#M47870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the issue.&amp;nbsp; When I'm running through lsf I see the following in the log:&lt;/P&gt;&lt;P&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put %sysfunc(getoption(XCMD)) ;&lt;/P&gt;&lt;P&gt;NOXCMD&lt;/P&gt;&lt;P&gt;How can I turn it to XCMD ?&amp;nbsp; Pl. advise !&amp;nbsp; I guess this is the problem that I've been experiencing !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189497#M47870</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189498#M47871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add -xcmd in the \Config\Lev1\SASApp\BatchServer\sasv9_usermods.cfg file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189498#M47871</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-04-23T21:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189499#M47872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LinusH,&lt;/P&gt;&lt;P&gt;Do I need to bounch the servers ?&amp;nbsp; I ran the code after modifying sasv9_usermods.cfg but still seeing&lt;/P&gt;&lt;P&gt;NOXCMD !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189499#M47872</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T21:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189500#M47873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which admin (SAS or Windows).&amp;nbsp; Where he has to turned this option off ?&lt;/P&gt;&lt;P&gt;Thanks for the input .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 22:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189500#M47873</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-23T22:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189501#M47874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS Admin.&amp;nbsp; XCMD is an option that needs to be turned on in the config file for the batch server.&amp;nbsp; LinusH gave the location of the default config file.&amp;nbsp; If you have write access to that (would be surprising if you're not the SAS Admin), give it a shot. Conceivable that you would need to bounce the server.&amp;nbsp; Regardless, whoever administers your SAS server should know how to set such SAS options.&amp;nbsp; So I will stick with my earlier recommendation, call your SAS admin and say "pretty please can you turn on XCMD for the batch server?"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if they say no (because they are mean, or because they don't understand how to turn it on while keeping stuff secure), then look at your code and see if you can change it to get the same result (you haven't told us *why* you're piping OS commands), with native SAS code.&amp;nbsp; In fact, many folks would say even if XCMD is enabled, there are benefits to getting you job done with SAS code (portability etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris H has a nice post about XCMD:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/08/31/the-case-for-xcmd-privileges-in-sas-enterprise-guide/"&gt;http://blogs.sas.com/content/sasdummy/2012/08/31/the-case-for-xcmd-privileges-in-sas-enterprise-guide/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 00:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189501#M47874</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-04-24T00:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189502#M47875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LSF jobs run in batch so you shouldn't have to restart the server. Investigate what batch command LSF actually uses. This should show you which config files get executed and where you would have to change from NOXCMD to XCMD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively: You could add -XCMD directly to the command line (done via SMC). I believe this would supersede most settings done somewhere else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 00:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189502#M47875</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-04-24T00:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189503#M47876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added -xcmd command directly into the job's properties in SMC and it worked successfully with no issues !&lt;/P&gt;&lt;P&gt;Thanks everybody for the help extended here.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;-P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 03:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189503#M47876</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-24T03:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: lsf schedular</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189504#M47877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wondering what's the best method to notify programmers about job's fail and abend or even success through email and text messages from lsf ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 18:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/lsf-schedular/m-p/189504#M47877</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2014-04-24T18:41:53Z</dc:date>
    </item>
  </channel>
</rss>

