<?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: SAS Scheduler ID running X CMD in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429902#M12016</link>
    <description>Hello Christian,&lt;BR /&gt;&lt;BR /&gt;Yeap I have granted LSFAdmin to full privilidge for the entire hard disk.&lt;BR /&gt;Anyways I have changed the sas batch file as you suggested and it works now.&lt;BR /&gt;&lt;BR /&gt;Thanks alot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Tue, 23 Jan 2018 07:24:26 GMT</pubDate>
    <dc:creator>njwmeme</dc:creator>
    <dc:date>2018-01-23T07:24:26Z</dc:date>
    <item>
      <title>SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/428996#M11953</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to run a batch of SAS code through SAS scheduler(Flow Manager), which is using lsfadmin ID to execute. I will usually run with sasdemo ID(In SAS DI) which is OK, but when I run scheduler with lsfadmin, my job finishes without error but the code was not executed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code basically goes to the hard disk directory to find for a particular SAS file and repeats until all directories are checked. Lastly it will compile all the SASfile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x cd &amp;amp;path;&lt;BR /&gt;x dir &amp;gt; F:\SAS\test1.txt;&lt;BR /&gt;filename temp "F:\SAS\test1.txt";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;njwmeme&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 03:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/428996#M11953</guid>
      <dc:creator>njwmeme</dc:creator>
      <dc:date>2018-01-19T03:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429030#M11957</link>
      <description>&lt;P&gt;Run your external commands like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "x cd &amp;amp;path;dir 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will find all output (including error messages, that's what the 2&amp;gt;&amp;amp;1 is for) in the SAS log for diagnostic purposes. From that, you can take appropriate action. Once it delivers the expected result, you can replace this data _null_ step with your original step that read from the intermediate file, but use the piped command.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 07:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429030#M11957</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-19T07:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429038#M11959</link>
      <description>&lt;P&gt;Hello Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After changing the codes, and run through flow manager, I got this error 'Insufficient authorization to access PIPE.'. May I know where to grant access to the ID to access PIPE?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 08:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429038#M11959</guid>
      <dc:creator>njwmeme</dc:creator>
      <dc:date>2018-01-19T08:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429043#M11963</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79161"&gt;@njwmeme&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After changing the codes, and run through flow manager, I got this error 'Insufficient authorization to access PIPE.'. May I know where to grant access to the ID to access PIPE?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Looks like you don't have XCMD enabled, which would also prevent the x statement from working.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 08:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429043#M11963</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-19T08:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429053#M11966</link>
      <description>&lt;P&gt;Hello Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have enabled XCMD from SMC side but still unable to run any XCMD with lsfadmin. May I know should I add 'options XCMD;' at the starting of my codes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429053#M11966</guid>
      <dc:creator>njwmeme</dc:creator>
      <dc:date>2018-01-19T09:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429057#M11967</link>
      <description>&lt;P&gt;XCMD is enabled at SAS start, via configuration or commandline. After that, it can't be changed. So doing it in your codes won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems (to me) you changed a server configuration that is not the one the lsf jobs are using, but then I'm no "SAS with LSF" expert.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429057#M11967</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-19T09:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429059#M11968</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;If you want to enable XCMD for the batchserver, you have to change it in the sabatch.bat file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.G \SAS\Config\Lev1\SASApp\BatchServer\sasbatch.bat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;change it in theese lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if not {"%username%"}=={""} (&lt;BR /&gt;Set CMD_OPTIONS=-noxwait &lt;FONT color="#ff0000"&gt;-xcmd&lt;/FONT&gt; -lrecl 32767 -config "%CONFIGDIR%\sasv9.cfg" -sasinitialfolder "%APPSERVER_ROOT%" %USERMODS_OPTIONS%&lt;BR /&gt;) else (&lt;BR /&gt;Set CMD_OPTIONS=-sasuser work -noxwait&lt;FONT color="#ff0000"&gt; -xcmd&lt;/FONT&gt; -lrecl 32767 -config "%CONFIGDIR%\sasv9.cfg" -sasinitialfolder "%APPSERVER_ROOT%" %USERMODS_OPTIONS%&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429059#M11968</guid>
      <dc:creator>CHandberg</dc:creator>
      <dc:date>2018-01-19T09:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429063#M11969</link>
      <description>&lt;P&gt;Actually, it is strongly recommended to make individual changes in the _usermods files:&lt;/P&gt;
&lt;P&gt;sasbatch_usermods.bat (or sasbatch_usermods.sh on UNIX)&lt;/P&gt;
&lt;P&gt;sasv9_usermods.cfg&lt;/P&gt;
&lt;P&gt;autoexec_usermods.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as these will be preserved when SAS software is updated by the Deployment Manager. The non-_usermods files can and sometimes will be overwritten.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429063#M11969</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-19T09:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429067#M11970</link>
      <description>&lt;P&gt;That is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in this case you have no choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The option -NOXCMD is set by default in sasbatch.bat, so you have no choice but change it here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same thing is that you have to edit and remove the REM from the last statements if you want to capture warnings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So as you are saying; It is strongly recommended not to make individual changes to sasbatch.bat&amp;nbsp;and should be avoided, but sometimes you have no choice but to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429067#M11970</guid>
      <dc:creator>CHandberg</dc:creator>
      <dc:date>2018-01-19T09:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429072#M11972</link>
      <description>&lt;P&gt;You can do it with sasbatch_usermods.sh in UNIX:&lt;/P&gt;
&lt;PRE&gt;#!/bin/ksh -p
#
# sasbatch_usermods.sh
#
# This script extends sasbatch.sh.  Add local environment variables
# to this file so they will be preserved.
#

set -A USERMODS_OPTIONS   # initialize empty list
# build up list by un-commenting (and adding) the lines you need (one line per t
oken)
# then replace the &amp;lt;argument&amp;gt; with the values you want for each token on the com
mand line
USERMODS_OPTIONS[${#USERMODS_OPTIONS[*]}]="-xcmd"
#USERMODS_OPTIONS[${#USERMODS_OPTIONS[*]}]="&amp;lt;argument&amp;gt;"
#USERMODS_OPTIONS[${#USERMODS_OPTIONS[*]}]="&amp;lt;argument&amp;gt;"
#USERMODS_OPTIONS[${#USERMODS_OPTIONS[*]}]="&amp;lt;argument&amp;gt;"
#USERMODS_OPTIONS[${#USERMODS_OPTIONS[*]}]="&amp;lt;argument&amp;gt;"
&lt;/PRE&gt;
&lt;P&gt;This change enables xcmd and let me run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "ls $HOME";

data _null_;
infile oscmd;
input;
put _infile_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;successfully. I guess that similar should be possible in the Windows SAS environment.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429072#M11972</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-19T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429076#M11973</link>
      <description>&lt;P&gt;It works in windows as well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens is that you get a command line with both -NOXCMD an -XCMD. Last one wins &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(My OCD never allowed me to think this as a valid option &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you're right that it can be done by setting&amp;nbsp;USERMODS_OPTIONS=-XCMD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still not sure if I like it, because I would rather "reduce noise" in&amp;nbsp;the commandline&amp;nbsp;so there is no uncertainty about what is used (people tend to read from left to right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) than avoid changing the file. The App-server folders will be saved and compared/updated anyway, when you update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that is just me. Your way of doing it is the correct one according to SAS standards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the correction!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Christian&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429076#M11973</guid>
      <dc:creator>CHandberg</dc:creator>
      <dc:date>2018-01-19T10:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429078#M11974</link>
      <description>&lt;P&gt;I was thinking XCMD is one thing...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thing;&lt;/P&gt;&lt;P&gt;Does the user&amp;nbsp;LSFAdmin have the correct (Active Directory?)&amp;nbsp;access to the folders?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429078#M11974</guid>
      <dc:creator>CHandberg</dc:creator>
      <dc:date>2018-01-19T10:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429531#M12002</link>
      <description>&lt;P&gt;Hello Christian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have granted LSFAdmin full permission to the folders. The thing is, scheduled jobs were supposed to be run by sasdemo, which has more permissions. However it was done by the previous developers to run scheduler via LSFAdmin, which is why I am trying to find a workaround to get the flow running smoothly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 02:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429531#M12002</guid>
      <dc:creator>njwmeme</dc:creator>
      <dc:date>2018-01-22T02:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429569#M12004</link>
      <description>&lt;P&gt;Just to be sure: Does LSFAdmin have acces to the folder that contains the .sas-file (the deployment-directory)&amp;nbsp;that is executed i the commandline from the scheduler?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the scheduler executes and there is no RC and an empty or no log it is often because the ,sas.file either doesn't exists or the access is restricted.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429569#M12004</guid>
      <dc:creator>CHandberg</dc:creator>
      <dc:date>2018-01-22T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Scheduler ID running X CMD</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429902#M12016</link>
      <description>Hello Christian,&lt;BR /&gt;&lt;BR /&gt;Yeap I have granted LSFAdmin to full privilidge for the entire hard disk.&lt;BR /&gt;Anyways I have changed the sas batch file as you suggested and it works now.&lt;BR /&gt;&lt;BR /&gt;Thanks alot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 23 Jan 2018 07:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Scheduler-ID-running-X-CMD/m-p/429902#M12016</guid>
      <dc:creator>njwmeme</dc:creator>
      <dc:date>2018-01-23T07:24:26Z</dc:date>
    </item>
  </channel>
</rss>

