<?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: execute sas program via command line in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440020#M109849</link>
    <description>Thanks KurtBremser. I won't get access to the server or can I use my SAS credentials to authenticate?</description>
    <pubDate>Sun, 25 Feb 2018 12:48:58 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2018-02-25T12:48:58Z</dc:date>
    <item>
      <title>execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439933#M109817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS on a server via Enterprise Guide. Can I also execute a SAS program on my local machine via the command line? Any pointer would be very much appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 12:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439933#M109817</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-24T12:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439934#M109818</link>
      <description>If the server and the client uses the same OS, and you can map server drives it's possible. &lt;BR /&gt;But why?&lt;BR /&gt;You can execute E.G. projects locally,  it still the SAS session will execute on the server.</description>
      <pubDate>Sat, 24 Feb 2018 13:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439934#M109818</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-02-24T13:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439936#M109819</link>
      <description>&lt;P&gt;Thanks. Basically, I want to create SAS programs (text files) dynamically (via another program) and then execute the via the command line (in invoked by the program that creates the text files). EG runs on Windows and SAS in Unix, as far as I know. No chance that I can map any drives - our IT is pretty useless. I was also thinking about using stored processes. Ultimately, a stored process is a (restful?) API. This may work in theory but determining the URI of the stored process and authentication may be impossible - I do not expect any support from our IT. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 13:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439936#M109819</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-24T13:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439952#M109824</link>
      <description>&lt;P&gt;That's a really bad situation you are in. If you name an Processflow "autoexec" in EG, it will automatically run on loading the project - you have to check an option for the automatism to happen. This is a workaround and not a very good one, but the only one i can think of that does not need the IT involved. Can you create a stored process?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 16:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439952#M109824</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-02-24T16:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439998#M109838</link>
      <description>&lt;P&gt;You can only execute a SAS program on your PC if you have Foundation SAS also installed there. If this is the case then the option "local server" should display when you configure your EG connection profile. If you do have this then just make the local server your active one and you can still use EG to run code locally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If what you mean is: can you run a command line process that will run a SAS program on your remote SAS server? Yes that is possible and one of the options would be the EG scheduling facility.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 02:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/439998#M109838</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-02-25T02:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440010#M109844</link>
      <description>&lt;P&gt;If your only link to the SAS server is EG (i.e. no FTP, no mapped drives, no access to the unix shell from windows, no windows SAS on your PC to talk to the server SAS) then the only way to create or modify or delete or run anything on the unix server is via this interface: EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, this is not a SAS question, it is a general IT question. If you only have one access method, you can only use this one access method.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 08:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440010#M109844</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-25T08:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440016#M109847</link>
      <description>&lt;P&gt;Thanks I can create stored processes, although there is no clear target operating model (e.g. best practice of deployment). I would also need to know the URI of my stored process. Is there a way of determining this? I intend to write a C# application to consume this. Another alternative is IOM. I once got some C# code working using IOM as a POC. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 09:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440016#M109847</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-25T09:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440017#M109848</link>
      <description>&lt;P&gt;You can script a SSH client on the Windows side so that it automatically logs on to the UNIX server and executes a command there, that command then being a call of the sasbatch.sh script provided in the SASApp configuration tree.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 10:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440017#M109848</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-25T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440020#M109849</link>
      <description>Thanks KurtBremser. I won't get access to the server or can I use my SAS credentials to authenticate?</description>
      <pubDate>Sun, 25 Feb 2018 12:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440020#M109849</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-25T12:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440021#M109850</link>
      <description>Thanks ChrisNZ. I guess I could use a desktop equivalent to Selenium (a web driver). I also got IOM working to execute some code (see &lt;A href="http://support.sas.com/resources/papers/proceedings12/017-2012.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings12/017-2012.pdf&lt;/A&gt;). Unfortunately, nothing happens not even an error message. IOM can also be used to invoke stored processes. i will have a look at this ...</description>
      <pubDate>Sun, 25 Feb 2018 12:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440021#M109850</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-25T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440022#M109851</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99946"&gt;@csetzkorn&lt;/a&gt; id not already did, you need to talk to your SAS server admin, and potentially UNIX/AD admin and an IT architect so you are not trying to implement a "bad" practice. &lt;BR /&gt;If you have a valid use case you should be able to set this up on the server. Driving jobs/batches from local machine is a 20th century thing.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 13:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440022#M109851</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-02-25T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440023#M109852</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got it to work using IOM in the end see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings12/017-2012.pdf" target="_self"&gt;http://support.sas.com/resources/papers/proceedings12/017-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can write from Windows to the Unix file system and then use an include. The steps are generate&amp;nbsp;SAS code, write it to file. Use include and IOM to execute SAS code. The SAS code writes to the file system as well, which I can see in Windows. Data can then be uses in C# code.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 13:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440023#M109852</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-02-25T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440061#M109871</link>
      <description>&lt;P&gt;Do you have access to SAS Management Console? If you do there is a much easier way. SMC allows you to run SAS batch jobs on your Unix server via a point-and-click interface.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 19:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/440061#M109871</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-02-25T19:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: execute sas program via command line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/441191#M110325</link>
      <description>No - I am just a proletarian SAS consumer&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-sas-program-via-command-line/m-p/441191#M110325</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-03-01T14:05:00Z</dc:date>
    </item>
  </channel>
</rss>

