<?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 run shell script error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370304#M88435</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a shell script in unix whose name is :&amp;nbsp;batching.csh&lt;/P&gt;
&lt;P&gt;Here is the code inside this file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#!/bin/ksh
cd /Program_Directory/
sas prog_1.sas &amp;amp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My problem is when I run this script it told me&amp;nbsp;"&lt;SPAN&gt;Command not found"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xnzspap23x-tcsh-23$ batching.csh
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;batching.csh: Command not found.&lt;/PRE&gt;
&lt;P&gt;This is my first time create a shell script in unix, please help me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2017 21:42:16 GMT</pubDate>
    <dc:creator>GeorgeSAS</dc:creator>
    <dc:date>2017-06-24T21:42:16Z</dc:date>
    <item>
      <title>run shell script error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370304#M88435</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a shell script in unix whose name is :&amp;nbsp;batching.csh&lt;/P&gt;
&lt;P&gt;Here is the code inside this file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#!/bin/ksh
cd /Program_Directory/
sas prog_1.sas &amp;amp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My problem is when I run this script it told me&amp;nbsp;"&lt;SPAN&gt;Command not found"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xnzspap23x-tcsh-23$ batching.csh
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;batching.csh: Command not found.&lt;/PRE&gt;
&lt;P&gt;This is my first time create a shell script in unix, please help me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 21:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370304#M88435</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-06-24T21:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: run shell script error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370305#M88436</link>
      <description>&lt;P&gt;First figure out the command line that you need directly in Unix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you incorporate those into a sh file that you call from Unix and test&lt;/P&gt;
&lt;P&gt;Then you test it in SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which step are you on now?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 21:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370305#M88436</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-24T21:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: run shell script error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370308#M88437</link>
      <description>If the directory where your script is stored is not in the PATH environment variable, you need to supply the whole path for the command. Or at least ./ for the current directory.</description>
      <pubDate>Sat, 24 Jun 2017 22:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370308#M88437</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-24T22:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: run shell script error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370313#M88438</link>
      <description>I found the problem is I use notepad to edit the .csh file. when I use vi to create this file it works.&lt;BR /&gt;but vi is very not convenient to edit like notepad. any suggestion?</description>
      <pubDate>Sat, 24 Jun 2017 22:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370313#M88438</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-06-24T22:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: run shell script error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370314#M88439</link>
      <description>&lt;P&gt;When you save it make sure it gets saved with the .sh extension and doesn't get named filename.sh.txt or something of the sort.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 23:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370314#M88439</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-24T23:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: run shell script error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370434#M88454</link>
      <description>&lt;P&gt;I would not use something as crude as Windows Notepad for programming work (which inlcudes shell scripting).&lt;/P&gt;
&lt;P&gt;Actually, I still use vi for scripts&lt;/P&gt;
&lt;P&gt;- is available on ALL UNIX platforms with the same syntax&lt;/P&gt;
&lt;P&gt;- works even over a simple telnet connection, as it does not need any function keys/mousing around/etc&lt;/P&gt;
&lt;P&gt;- can edit files of arbitrary size, although it might change to line mode with sufficiently large files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are working on UNIX from Windows, I recommend using notepad++, as it can write text files in UNIX mode (LF instead of CRLF), provides a hex display mode, and lots of other features that are helpful when writing any type of code.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 06:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-shell-script-error/m-p/370434#M88454</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-26T06:04:21Z</dc:date>
    </item>
  </channel>
</rss>

