<?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 Ability to run sas prog on remote server using SSH in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34064#M4946</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;
     I am trying to run a sas prog on a remote server using ssh. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
I have got the command that I am using in the below paragraph. With it, I was able to run shell scripts but when I tried 'sas' it errored out. I have got my keys exchanged so when I say ssh serverA I automatically connect to my remote server. (Note: All the commands in the quotations run one by one when they hit a semi-colon).  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
When I run the below I get an error ksh: sas:  not found. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
ssh serverA "cd /directory/sas; pwd;ls; sas avi.sas"&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Any help would be appreciated. I was thinking to do this in the above fashion. If there are any other suggestions on how to run a sas job on a remote server, please enlighten me. &lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
Thanks, &lt;BR /&gt;&lt;BR /&gt;
  Cool_avi</description>
    <pubDate>Wed, 20 May 2009 02:34:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-05-20T02:34:28Z</dc:date>
    <item>
      <title>Ability to run sas prog on remote server using SSH</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34064#M4946</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;
     I am trying to run a sas prog on a remote server using ssh. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
I have got the command that I am using in the below paragraph. With it, I was able to run shell scripts but when I tried 'sas' it errored out. I have got my keys exchanged so when I say ssh serverA I automatically connect to my remote server. (Note: All the commands in the quotations run one by one when they hit a semi-colon).  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
When I run the below I get an error ksh: sas:  not found. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
ssh serverA "cd /directory/sas; pwd;ls; sas avi.sas"&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Any help would be appreciated. I was thinking to do this in the above fashion. If there are any other suggestions on how to run a sas job on a remote server, please enlighten me. &lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
Thanks, &lt;BR /&gt;&lt;BR /&gt;
  Cool_avi</description>
      <pubDate>Wed, 20 May 2009 02:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34064#M4946</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-20T02:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to run sas prog on remote server using SSH</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34065#M4947</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Use ./sas avi.sas command.&lt;BR /&gt;
&lt;BR /&gt;
lu</description>
      <pubDate>Wed, 20 May 2009 13:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34065#M4947</guid>
      <dc:creator>lu</dc:creator>
      <dc:date>2009-05-20T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to run sas prog on remote server using SSH</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34066#M4948</link>
      <description>Hi Lu, &lt;BR /&gt;&lt;BR /&gt;
         I tried that but get the same error. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; .&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
Thanks, &lt;BR /&gt;&lt;BR /&gt;
Cool_avi</description>
      <pubDate>Wed, 20 May 2009 15:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34066#M4948</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-20T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to run sas prog on remote server using SSH</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34067#M4949</link>
      <description>Hi  Cool_avi &lt;BR /&gt;
to run sas in batch mode you need&lt;BR /&gt;
&lt;BR /&gt;
'full path to sas ' 'fill path to you program'&lt;BR /&gt;
&lt;BR /&gt;
root directory of  sas -     /sas&lt;BR /&gt;
you program in   /Cool_avi/avi.sas&lt;BR /&gt;
&lt;BR /&gt;
to run program avi.sas &lt;BR /&gt;
/sas/sas /Cool_avi/avi.sas&lt;BR /&gt;
----------------------------------------------&lt;BR /&gt;
or &lt;BR /&gt;
cd /sas&lt;BR /&gt;
./sas /Cool_avi/avi.sas&lt;BR /&gt;
-----------------------------------------------------&lt;BR /&gt;
or &lt;BR /&gt;
cd /Cool_avi&lt;BR /&gt;
/sas/sas avi.sas&lt;BR /&gt;
----------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
lu

Message was edited by: lu</description>
      <pubDate>Wed, 20 May 2009 16:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34067#M4949</guid>
      <dc:creator>lu</dc:creator>
      <dc:date>2009-05-20T16:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to run sas prog on remote server using SSH</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34068#M4950</link>
      <description>Thanks Lu :). That worked for me. I had to specify the whole qualified path to SAS before my script. I appreciate the help.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Regards, &lt;BR /&gt;&lt;BR /&gt;
Cool_avi</description>
      <pubDate>Wed, 03 Jun 2009 16:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ability-to-run-sas-prog-on-remote-server-using-SSH/m-p/34068#M4950</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-03T16:25:34Z</dc:date>
    </item>
  </channel>
</rss>

