<?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: Ksh extension in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856131#M338300</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you look at the file content? - It might be a korn script that executes a SAS program. If this is the case, the script contains a command to start SAS with the program path/name as one of the arguments. This gives you 3 possible ways of executing the SAS program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy the program path/name and run it in a SAS session with %include.&lt;/LI&gt;
&lt;LI&gt;Run the script from a command line, if you have direct access to the server.&lt;/LI&gt;
&lt;LI&gt;Run the script in a SAS session by using the X command, if you have the XCMD option set.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jan 2023 10:23:32 GMT</pubDate>
    <dc:creator>ErikLund_Jensen</dc:creator>
    <dc:date>2023-01-29T10:23:32Z</dc:date>
    <item>
      <title>Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856075#M338273</link>
      <description>Hello team, &lt;BR /&gt;I need to run a sas program that has ksh extension instead of sas. What difference does this extension do?&lt;BR /&gt;Best regards,&lt;BR /&gt;Blue blue</description>
      <pubDate>Sat, 28 Jan 2023 05:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856075#M338273</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-01-28T05:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856077#M338275</link>
      <description>&lt;P&gt;.ksh is the extension for Korn Shell scripts. If the file is a SAS program then ideally change the suffix to .sas as .ksh is just wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;....but shouldn't be an issue to run a SAS program stored in a file with the wrong suffix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOW do you plan to run this program? An %include statement to it, in batch via your own script, or in batch using a scheduler ....(which could cause some issues if using a SAS OEM version of lsf which doesn't allow for scheduling files other than .sas).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 05:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856077#M338275</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-28T05:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856085#M338279</link>
      <description>&lt;P&gt;From where do you know it's a SAS program? Did you read it to verify it contains SAS code?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 07:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856085#M338279</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-28T07:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856108#M338289</link>
      <description>&lt;P&gt;KSH extension is sometimes used to indicate that the file contains korn shell commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But both SAS programs and Korn Shell programs are just text files.&amp;nbsp; So look at the file and see whether it has SAS code or Unix commands. (or perhaps it has both).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't know how to open the file with a text editor you can just have SAS read the file and dump the contents to the SAS log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'myfile.ksh' ;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Jan 2023 18:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856108#M338289</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-28T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856131#M338300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you look at the file content? - It might be a korn script that executes a SAS program. If this is the case, the script contains a command to start SAS with the program path/name as one of the arguments. This gives you 3 possible ways of executing the SAS program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy the program path/name and run it in a SAS session with %include.&lt;/LI&gt;
&lt;LI&gt;Run the script from a command line, if you have direct access to the server.&lt;/LI&gt;
&lt;LI&gt;Run the script in a SAS session by using the X command, if you have the XCMD option set.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 10:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856131#M338300</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2023-01-29T10:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856171#M338312</link>
      <description>&lt;P&gt;In many organizations with SAS installed in UNIX/Linux environment , Korn shell scripts are used to call SAS programs.&lt;BR /&gt;These scripts may are typically executed by some sort of scheduler. It is quite possible that this may be the case.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 23:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856171#M338312</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-01-29T23:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856346#M338361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for the response. I have several csv files that I need to combine them and put in a folder. I wonder if KSH extension can do that.&lt;/P&gt;
&lt;P&gt;in one of them I have:&lt;/P&gt;
&lt;P&gt;./01_split.ksh&lt;/P&gt;
&lt;P&gt;./02_split.ksh&lt;/P&gt;
&lt;P&gt;./03_add_somthing.ksh&lt;/P&gt;
&lt;P&gt;./04_abc_combine.ksh&lt;/P&gt;
&lt;P&gt;./04_def_combine.ksh&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blue blue&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 21:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856346#M338361</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-01-30T21:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856358#M338367</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for the response. I have several csv files that I need to combine them and put in a folder. I wonder if KSH extension can do that.&lt;/P&gt;
&lt;P&gt;in one of them I have:&lt;/P&gt;
&lt;P&gt;./01_split.ksh&lt;/P&gt;
&lt;P&gt;./02_split.ksh&lt;/P&gt;
&lt;P&gt;./03_add_somthing.ksh&lt;/P&gt;
&lt;P&gt;./04_abc_combine.ksh&lt;/P&gt;
&lt;P&gt;./04_def_combine.ksh&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blue blue&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The name and extension of the files is less important than it's content. You need to share what's IN these files for us to give you more guidance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, there are Unix/Korn Shell commands that allow to manipulate files.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 22:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856358#M338367</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-30T22:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh extension</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856488#M338420</link>
      <description>&lt;P&gt;I agree with what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; has said.&lt;BR /&gt;The very fact that&amp;nbsp; Korn shell scripts are in use indicates that they have been around for quite&amp;nbsp; some time. Seniors who have been around in the organization should be able to assist.,&lt;BR /&gt;You have said that you want combine csv file and move them to a folder. Going by your posts in this thread, I suggest consider using SAS. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 16:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ksh-extension/m-p/856488#M338420</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-01-31T16:05:43Z</dc:date>
    </item>
  </channel>
</rss>

