<?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: run a sh file in SAS/EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871243#M344135</link>
    <description>Hi Quentin, thanks for quick reply.&lt;BR /&gt;I am using the same user account in both EG and putty.&lt;BR /&gt;There is a empty Excel file generated by EG,I checked there is no records.</description>
    <pubDate>Fri, 21 Apr 2023 19:15:55 GMT</pubDate>
    <dc:creator>xiaokai</dc:creator>
    <dc:date>2023-04-21T19:15:55Z</dc:date>
    <item>
      <title>run a sh file in SAS/EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871192#M344119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used X statement to run a sh file in EG. This sh file uses for pulling data from datalake and save the data as several Excel files.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the putty to run the sh file, it takes around 15 mins to get all the Excel files.&lt;/P&gt;&lt;P&gt;However, when I use the X statement, SAS only runs 1 second and stops when get one the Excel files. ( the one file only has file name, does not have any rows in it) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get all the Excel files with complete data. How can I fix the issue?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 16:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871192#M344119</guid>
      <dc:creator>xiaokai</dc:creator>
      <dc:date>2023-04-21T16:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: run a sh file in SAS/EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871193#M344120</link>
      <description>&lt;P&gt;You might want to add some logging to the shell script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run X from EG, it sounds like the shell script is at least running, right? This means you have XCMD turned on, and the shell script is accessible to the SAS server.&amp;nbsp; You might check if it could be a permissions issue.&amp;nbsp; When you connect to the server via putty, are you using the same user account as is used when EG connects to the SAS server?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you delete the Excel file and run the shell script via the X statement, are you sure it generates an empty Excel file?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a debugging script, you might want to create a 'helloWorld' shell script which just creates a .txt file or something.&amp;nbsp; And make sure you can get that working both from putty and EG.&amp;nbsp; Just to make sure that SAS is successfully running the shell script.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 16:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871193#M344120</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-04-21T16:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: run a sh file in SAS/EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871243#M344135</link>
      <description>Hi Quentin, thanks for quick reply.&lt;BR /&gt;I am using the same user account in both EG and putty.&lt;BR /&gt;There is a empty Excel file generated by EG,I checked there is no records.</description>
      <pubDate>Fri, 21 Apr 2023 19:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-a-sh-file-in-SAS-EG/m-p/871243#M344135</guid>
      <dc:creator>xiaokai</dc:creator>
      <dc:date>2023-04-21T19:15:55Z</dc:date>
    </item>
  </channel>
</rss>

