<?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: How to run SAS in cmd without opening the actual SAS tool in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813722#M24400</link>
    <description>&lt;P&gt;That's a nice idea. I think the difficulty (not insurmountable, of course!) would be that an EG project isn't necessarily one straight flow of code. There can be multiple process flows, so you'd need to have some way of specifying the one you want to run.&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 08:58:31 GMT</pubDate>
    <dc:creator>Nigel_Pain</dc:creator>
    <dc:date>2022-05-17T08:58:31Z</dc:date>
    <item>
      <title>How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813688#M24393</link>
      <description>Can we run SAS in cmd prompt by passing a .sas file without opening the SAS tool? Similar to how python code runs in the background if we pass python tst.py in cmd prompt</description>
      <pubDate>Tue, 17 May 2022 04:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813688#M24393</guid>
      <dc:creator>JoshuaHarris</dc:creator>
      <dc:date>2022-05-17T04:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813690#M24394</link>
      <description>&lt;P&gt;It's called running SAS in batch mode. This &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/p16esisc4nrd5sn1ps5l6u8f79k6.htm#p01fzykn6n0s73n164xasi1t3ii9" target="_blank" rel="noopener"&gt;link&lt;/A&gt; describes the details for SAS running on Windows.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 05:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813690#M24394</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-17T05:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813692#M24395</link>
      <description>Thank you for your quick reply. Can you please let me know if we can do the same for .egp files</description>
      <pubDate>Tue, 17 May 2022 05:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813692#M24395</guid>
      <dc:creator>JoshuaHarris</dc:creator>
      <dc:date>2022-05-17T05:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813700#M24396</link>
      <description>&lt;P&gt;This should call&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp; &amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 06:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813700#M24396</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-17T06:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813701#M24397</link>
      <description>I checked the below page created by Chris and couldn't find any ways that we could execute SAS egp files using cmd prompt. Also tried the powershell one, but couldn't change the execution policies as we using office system and it cannot be modified.&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832&lt;/A&gt;&lt;BR /&gt;Will wait for Chris to respond with some solution or workaround</description>
      <pubDate>Tue, 17 May 2022 06:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813701#M24397</guid>
      <dc:creator>JoshuaHarris</dc:creator>
      <dc:date>2022-05-17T06:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813713#M24398</link>
      <description>&lt;P&gt;Correct, you can't run EG projects from a command line. You can run them from &lt;A href="https://github.com/cjdinger/sas-eg-automation/blob/master/vbscript/BatchProject.vbs" target="_blank" rel="noopener"&gt;VBScripts&lt;/A&gt; though and you can export the SAS code from your project if you must use a command line.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813713#M24398</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-17T08:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813719#M24399</link>
      <description>&lt;P&gt;&lt;U&gt;SAS in batch mode&lt;/U&gt; is only possible when you have a local SAS installation, or have access to the commandline on the SAS server.&lt;/P&gt;
&lt;P&gt;To run an &lt;U&gt;Enterprise Guide project&lt;/U&gt; in batch, you need to run software that mimics EG (or uses EG in "background" mode), and this is described by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;'s articles.&lt;/P&gt;
&lt;P&gt;EG provides the option of exporting the whole project code to a single .sas file, but this is only helpful if you do not use task nodes that use EG's special capabilities (importing/exporting, Copy Files, ..).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG itself should provide an OOTB option to do this from the commandline, like&lt;/P&gt;
&lt;PRE&gt;saseguide -project "path-to-project.egp" -run&lt;/PRE&gt;
&lt;P&gt;IMHO&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813719#M24399</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-17T08:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813722#M24400</link>
      <description>&lt;P&gt;That's a nice idea. I think the difficulty (not insurmountable, of course!) would be that an EG project isn't necessarily one straight flow of code. There can be multiple process flows, so you'd need to have some way of specifying the one you want to run.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813722#M24400</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2022-05-17T08:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813724#M24401</link>
      <description>&lt;P&gt;Of course, the commandline needs to reflect the capabilities of the software itself, so one would also need a -flow option (or the -run could optionally accept a flow name). And probably a -autoexec option which forces EG to execute the Autoexec flow even when it is not configured to do this per the settings.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 09:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813724#M24401</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-17T09:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813728#M24402</link>
      <description>&lt;P&gt;But mind that in all my work I have never run a project in batch mode (even though EG was my main interface to SAS, and my main development tool). All automation was always done by running .sas files in SAS batch mode from a scheduler, on the SAS server.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 09:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813728#M24402</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-17T09:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813837#M24407</link>
      <description>&lt;P&gt;The &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_self"&gt;automation / scripting APIs allow for "batch" and scheduled running of projects&lt;/A&gt;, but as others have pointed out it's not a native command-line interface for SAS Enterprise Guide. Instead you build a simple script (could be VB Script or PowerShell) and run the script from the command line.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 15:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/813837#M24407</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-05-17T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SAS in cmd without opening the actual SAS tool</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/814059#M24417</link>
      <description>&lt;P&gt;For info - we have built an open source server that provides a full REST API onto Base SAS.&amp;nbsp; Just point it at your SAS executable, add your SAS programs, and you can execute them easily from any language.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The benefit of this approach is that the projects you build can be very easily migrated to Viya in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasjs/server" target="_blank"&gt;https://github.com/sasjs/server&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 13:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-run-SAS-in-cmd-without-opening-the-actual-SAS-tool/m-p/814059#M24417</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-05-18T13:52:56Z</dc:date>
    </item>
  </channel>
</rss>

