<?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: How to write Putty commands in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258154#M18062</link>
    <description>&lt;P&gt;Right, well I don't use EG, so I don't know the restrictions behind that, nor do I know your setup/priviledges etc. &amp;nbsp;This should really be discussed with your IT group, so as everything has the access it needs, and things are setup in a good and validated method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now in Base SAS, you can send commands out the the Operating system, either by using file:&lt;/P&gt;
&lt;P&gt;filename mypipe pipe 'dir "c:\tmp"';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When read into SAS the dir c:\tmp is sent to the OS, and the contents returned. &amp;nbsp;There is also:&lt;/P&gt;
&lt;P&gt;call system()&lt;/P&gt;
&lt;P&gt;Which does a similar thing. &amp;nbsp;Now, so long as you have this "Putty" installed, and you have access to the main executable file, and the paths associated with the transfers, then all you need to do is construct the command line, and send it out to the system.&lt;/P&gt;
&lt;P&gt;This shows how to use the command line:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter3.html" target="_blank"&gt;http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter3.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://etherealmind.com/putty-command-line/" target="_blank"&gt;http://etherealmind.com/putty-command-line/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If none of the above makes any sense to you then I strongly advise you let your IT group handle this.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 08:53:27 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-03-22T08:53:27Z</dc:date>
    <item>
      <title>How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258151#M18061</link>
      <description>&lt;P&gt;My situation is&amp;nbsp;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have SAS EG installed and have only&amp;nbsp;remote server connected to execute any program. I need to set-up a process on data upload in SAS EG. Currently, I use putty to transfer the data from local server to remote server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question -&lt;/P&gt;&lt;P&gt;Is it possible to open and write putty commands in SAS EG (which has only remote server connection)? If yes, how to do it? Will you please share some sample code for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 08:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258151#M18061</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T08:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258154#M18062</link>
      <description>&lt;P&gt;Right, well I don't use EG, so I don't know the restrictions behind that, nor do I know your setup/priviledges etc. &amp;nbsp;This should really be discussed with your IT group, so as everything has the access it needs, and things are setup in a good and validated method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now in Base SAS, you can send commands out the the Operating system, either by using file:&lt;/P&gt;
&lt;P&gt;filename mypipe pipe 'dir "c:\tmp"';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When read into SAS the dir c:\tmp is sent to the OS, and the contents returned. &amp;nbsp;There is also:&lt;/P&gt;
&lt;P&gt;call system()&lt;/P&gt;
&lt;P&gt;Which does a similar thing. &amp;nbsp;Now, so long as you have this "Putty" installed, and you have access to the main executable file, and the paths associated with the transfers, then all you need to do is construct the command line, and send it out to the system.&lt;/P&gt;
&lt;P&gt;This shows how to use the command line:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter3.html" target="_blank"&gt;http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter3.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://etherealmind.com/putty-command-line/" target="_blank"&gt;http://etherealmind.com/putty-command-line/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If none of the above makes any sense to you then I strongly advise you let your IT group handle this.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 08:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258154#M18062</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-22T08:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258162#M18066</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;asyou have been advised, first you need to have permissions to run x commands (XCMD option), but I don't believe that was your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To simplify my answer, what you will need is to create an external file with all the ssh commands (which can be created with SAS or be just an static file), then call:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;putty.exe -ssh [domain name] -l [username] -pw [password] -m [the directory of the .txt file you created which contains the codes you want to be executed].&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Besides:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You might prefer to&amp;nbsp;use &lt;CODE&gt;plink.exe&lt;/CODE&gt;&amp;nbsp; (from the PuTTY web page) and not &lt;CODE&gt;putty.exe&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Without plink,&amp;nbsp;the only way is to use the &lt;CODE&gt;-log &amp;lt;logfile&amp;gt;&lt;/CODE&gt; options and then print its content and delete it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem with this option is that it will print the username and password in the logs. Probably there is an option to use a secured profile instead&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258162#M18066</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-03-22T10:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258179#M18067</link>
      <description>&lt;P&gt;Thanks for the inputs. Let me try and will get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258179#M18067</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T11:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258180#M18068</link>
      <description>&lt;P&gt;Can you use the Tasks | Data | Upload Data Files to Server task to use EG to transfer your data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258180#M18068</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-03-22T11:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258181#M18069</link>
      <description>&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258181#M18069</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-22T11:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258183#M18070</link>
      <description>upload data file - can be able to load only the sas data file not other external files like (csv, txt and excel)</description>
      <pubDate>Tue, 22 Mar 2016 11:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258183#M18070</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258186#M18071</link>
      <description>I have also gone through this blog. I dont know how to invoke copy file pop-up window. Could you please help me with that? I also have a question, do we need to have both local and remote server connection established for upload and download the data.</description>
      <pubDate>Tue, 22 Mar 2016 11:58:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258186#M18071</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T11:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258187#M18072</link>
      <description>i also have a question, do we need to have local and remote server connection established in the SAS EG to transfer the file from local machine to remote. Right now i have only remote server connection to execute my program. Please let me know your thoughts</description>
      <pubDate>Tue, 22 Mar 2016 11:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258187#M18072</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T11:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258192#M18074</link>
      <description>&lt;P&gt;The Data Upload/Download tasks don't need a local SAS to work. &amp;nbsp;And neither does the Copy Files task (which you have to download and install from my blog).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the Copy Files task is what you want to use -- that's a widely used task that thousands of users (my estimate!) have found to fit the need for copying files between a local PC and the remote SAS server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're having trouble getting the task to show in your Tools-&amp;gt;Add-In menu, you might be &lt;A href="http://blogs.sas.com/content/sasdummy/2013/05/19/unblocking-custom-task-dlls/" target="_self"&gt;missing the "unblock DLL" step&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258192#M18074</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-22T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258223#M18077</link>
      <description>&lt;P&gt;After placing all the DLL files in the specified folder and also unblocked&lt;BR /&gt;the DLL files. I'm able to see the add-in File transfer task but getting an&lt;BR /&gt;error msg while i try to open it.&lt;BR /&gt;&lt;BR /&gt;The error msg is Method not found: 'void SAS.EG.SDS.Model.Broker..ctor()'.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258223#M18077</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258231#M18078</link>
      <description>&lt;P&gt;You need to put&amp;nbsp;&lt;STRONG&gt;only one&lt;/STRONG&gt; of the DLL files into the Custom folder. &amp;nbsp;Select the version that matches your SAS Enterprise Guide version, and delete the others. &amp;nbsp;I think right now you have conflicting versions of this custom task installed.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258231#M18078</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-22T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Putty commands in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258279#M18081</link>
      <description>Thanks. Its working fine. Will be possible to add different remote server&lt;BR /&gt;which is not connected by SAS EG. For an example, I have load some external&lt;BR /&gt;file from local server to different server which is not connected with SAS&lt;BR /&gt;EG. And also one more question, is it possible to convert this menu driven&lt;BR /&gt;to SAS code.&lt;BR /&gt;&lt;BR /&gt;Thank you so much again.</description>
      <pubDate>Tue, 22 Mar 2016 17:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-write-Putty-commands-in-SAS-EG/m-p/258279#M18081</guid>
      <dc:creator>Karthick</dc:creator>
      <dc:date>2016-03-22T17:24:07Z</dc:date>
    </item>
  </channel>
</rss>

