<?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: X command on Windows when CMD is disabled in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442980#M110793</link>
    <description>&lt;P&gt;Glad you got it to work, but note that the same option that would disable the X statement disables the %sysexec statement. There is not much difference between them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should also disable the PIPE engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2018 17:41:52 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-03-06T17:41:52Z</dc:date>
    <item>
      <title>X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442968#M110791</link>
      <description>&lt;P&gt;How might I submit a batch job in SAS if the CMD (command prompt) has been disabled?&amp;nbsp; I had written the program to use an X statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The administrators have disabled CMD and before I request an exemption, I want to be sure that we do not have other routes.&amp;nbsp; I have no experience with Java, but might the data set Java object be a possible route?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442968#M110791</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2018-03-06T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442972#M110792</link>
      <description>&lt;P&gt;Doh!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%sysexec&amp;nbsp;works:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%sysexec mkdir "H:\SAS\test" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442972#M110792</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2018-03-06T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442980#M110793</link>
      <description>&lt;P&gt;Glad you got it to work, but note that the same option that would disable the X statement disables the %sysexec statement. There is not much difference between them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should also disable the PIPE engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442980#M110793</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-06T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442985#M110795</link>
      <description>&lt;P&gt;Indeed, both of the following worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5389 x 'mkdir "H:\SAS\test1"' ;&lt;BR /&gt;5390 %put SYsrc=&amp;amp;SYSRC. ;&lt;BR /&gt;SYsrc=1&lt;BR /&gt;5391&lt;BR /&gt;5392 %sysexec mkdir "H:\SAS\test2" ;&lt;BR /&gt;5393&lt;BR /&gt;5394 %put SYsrc=&amp;amp;SYSRC. ;&lt;BR /&gt;SYsrc=1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following, outside of the program that produced it as a CALL EXECUTE with an X statement, pops up a SAS session:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x "D:\Applications\SASHome\SASFoundation\9.4\sas.exe" -CONFIG&lt;BR /&gt;"D:\Applications\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg" -NOSPLASH -NOSTATUSWIN -SASUSER !userprofile -SYSIN&lt;BR /&gt;"H:\SAS\D1\sas\one.sas" -ALTLOG "H:\SAS\D1\sas\one.log" -PRINT&lt;BR /&gt;"H:\SAS\D1\sas\one.lst" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On other systems/installs, this ran the program in batch mode.&amp;nbsp; I am not sure what happened in my original testing, but when I have an issue, then I pop open CMD and run the code from the command line.&amp;nbsp; X commands work, even though I cannot use CMD.&amp;nbsp; I am not sure why the session is opening.&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;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442985#M110795</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2018-03-06T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442995#M110799</link>
      <description>&lt;P&gt;You might want to check the XWAIT and XSYNC options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the location of where SAS is actually installed can vary.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 18:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/442995#M110799</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-06T18:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/443057#M110822</link>
      <description>&lt;P&gt;Many SAS sites use SAS Management Console for running SAS batch jobs. Have you considered that as an option? IMO it provides a much better interface if you are running a lot of batch jobs.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 21:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/443057#M110822</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-03-06T21:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: X command on Windows when CMD is disabled</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/443438#M110942</link>
      <description>&lt;P&gt;I have no experience with SAS Management Console, but I would guess that setting up the proper run would require manual interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I have to write up my macros as a PharmaSUG/SGF paper.&amp;nbsp; Programmatically, I can make short work of obtaining the files in a directory and interleaving them by hierarchy level&amp;nbsp;and type (Main versus Validation).&amp;nbsp; I can check, programmatically, several results and "return codes", for instance, stop running Level 2&amp;nbsp;programs if Level 1 have certain issues.&amp;nbsp; I can have SAS email me based on various conditions or at set time points (elapsed time or programs).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure why so many SAS&amp;nbsp;shops have a .bat file to accomplish this.&amp;nbsp; The .bat file won't work on the GRID or LSAF, for instance.&amp;nbsp; I am new to EG, but I suspect that .bat files would be useless and the macros would need to be updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate the reference.&amp;nbsp; I will be sure to review it.&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;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 17:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-on-Windows-when-CMD-is-disabled/m-p/443438#M110942</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2018-03-07T17:48:57Z</dc:date>
    </item>
  </channel>
</rss>

