<?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: system command is not working in EG in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/516483#M3178</link>
    <description>&lt;P&gt;Dear Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I am able to execute same command from cmd ,its working fine. How can I make it run using my program in EG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;-Hemant&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 21:15:08 GMT</pubDate>
    <dc:creator>hhhhh</dc:creator>
    <dc:date>2018-11-27T21:15:08Z</dc:date>
    <item>
      <title>system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515352#M2899</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I am executing below code in sas 9.4 its working fine, but when same code I am trying to execute in sas EG, its just keep on running. Can anyone suggest me what is going wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;* VERIFY PSFTP Success and report out;&lt;/P&gt;&lt;P&gt;rc=system("&amp;amp;LabDM_path\PuTTY\psftp &amp;amp;YYY@&amp;amp;ZZZ -b &amp;amp;LabDM_path\&amp;amp;DT_partl_path\&amp;amp;BAT..scr") ;&lt;/P&gt;&lt;P&gt;put rc;&lt;BR /&gt;if rc = 0 then Posting = datetime() ;&lt;BR /&gt;else Posting = .F; *&amp;lt;&amp;lt;---means file failed;&lt;BR /&gt;put Posting= datetime20. ;&lt;BR /&gt;run ;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 13:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515352#M2899</guid>
      <dc:creator>hhhhh</dc:creator>
      <dc:date>2018-11-22T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515354#M2900</link>
      <description>&lt;P&gt;I would check that your system admin allows you to use operating commands from SAS first.&amp;nbsp; If so, then we would need to see what is exactly being done.&amp;nbsp; Open a command prompt and paste the actual command in there and run it.&amp;nbsp; Could hundreds of different things from access, to connection, to network drives, different operating system, etc.&amp;nbsp; I mean, just to start with your code, what does:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rc=system("&amp;amp;LabDM_path\PuTTY\psftp &amp;amp;YYY@&amp;amp;ZZZ -b &amp;amp;LabDM_path\&amp;amp;DT_partl_path\&amp;amp;BAT..scr") ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do, what does it resolve too?&amp;nbsp; We cannot guess these things.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 13:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515354#M2900</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-22T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515376#M2903</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for quick response. Below is the the explaination of given code-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rc=system("\\quintiles.net\Enterprise\Organization\GDM\LabDM\General\PuTTY\psftp &amp;amp;YYY@&amp;amp;ZZZ -b \\quintiles.net\Enterprise\Organization\GDM\LabDM\General\Hemant\sftp\Export\BAT.scr")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also does this restriction from Windows or SAS EG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more input from me.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 15:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515376#M2903</guid>
      <dc:creator>hhhhh</dc:creator>
      <dc:date>2018-11-22T15:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515382#M2905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp; How&amp;nbsp;is the connection in SAS EG, is it connected to server or local?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) You have macros referenced, are they available in EG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 15:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515382#M2905</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-11-22T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515383#M2906</link>
      <description>Hi Suryakiran,&lt;BR /&gt;1) it is connected to server.&lt;BR /&gt;2) yes, they are available in EG.&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Hemant&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Nov 2018 15:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515383#M2906</guid>
      <dc:creator>hhhhh</dc:creator>
      <dc:date>2018-11-22T15:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515387#M2907</link>
      <description>&lt;P&gt;The restriction is set in EG as part of the options.&amp;nbsp; If that is enabled then set your command as a pipe and feedback the response from it:&lt;/P&gt;
&lt;PRE&gt;filename tmp pipe "...";

data test;
  length buff $200;
  infile tmp;
  input buff $;
run;&lt;/PRE&gt;
&lt;P&gt;In this way test will hold all the feedback from the operating system on what is happening.&amp;nbsp; It can be a lot of different things.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 15:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515387#M2907</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-22T15:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515395#M2912</link>
      <description>&lt;P&gt;Ensure that the X Commands options (which enable execution of the OS commands)&amp;nbsp; is enabled in your environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps this link could help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/41/058.html" target="_blank"&gt;http://support.sas.com/kb/41/058.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 16:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515395#M2912</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2018-11-22T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515494#M2935</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/238000"&gt;@hhhhh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Suryakiran,&lt;BR /&gt;1) it is connected to server.&lt;BR /&gt;2) yes, they are available in EG.&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Hemant&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which most probably means that your SAS 9.4 runs locally on your desktop, while EG uses a remote server. DO NOT assume that the environment of the server is the same as that on your desktop.&lt;/P&gt;
&lt;P&gt;First verify that the system command you want to run works directly from the commandline, best from a remote login to the server.&lt;/P&gt;
&lt;P&gt;Once that is done and it works, run the system command from SAS with the filename pipe method to catch all system responses (don't forget to add 2&amp;gt;&amp;amp;1 at the end of the command to reroute stderr output to the pipe).&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 06:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/515494#M2935</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-23T06:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/516483#M3178</link>
      <description>&lt;P&gt;Dear Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I am able to execute same command from cmd ,its working fine. How can I make it run using my program in EG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;-Hemant&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/516483#M3178</guid>
      <dc:creator>hhhhh</dc:creator>
      <dc:date>2018-11-27T21:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: system command is not working in EG</title>
      <link>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/516491#M3180</link>
      <description>&lt;P&gt;Use the filename pipe method to catch all system responses.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/system-command-is-not-working-in-EG/m-p/516491#M3180</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-27T21:44:58Z</dc:date>
    </item>
  </channel>
</rss>

