<?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: Moving by code file from Server to Local in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286413#M19595</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;The reason is that i have not the permission on my local pc to copy the *.dll file of custom task and for policy i can't install any software or other file in system folders...&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So try something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TO START I NEED:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. enable the XCOMMAND&lt;/P&gt;&lt;P&gt;2. SAS SERVER can ping my local machine&lt;/P&gt;&lt;P&gt;3. SAS User from SAS server can copy to my local machine&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;TO DO LIST:&lt;/STRONG&gt;&lt;BR /&gt;1. Understand my local ip with "ipconfig" from CMD on my machine (IPv4 Address)&lt;BR /&gt;2. TEST from SAS EG if SERVER can PING my local machine, for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CMD pipe 'ping XXXXXXXX';
data _null_;
    length rc $ 256 ;
    infile CMD length=reclen missover;
    input  rc $varying256. reclen;
    put rc=;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;3. COPY file from SERVER to MYLOCALMACHINE, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CMD pipe 'copy C:\tmp\class.sas7bdat \\MYLOCALIP\C:\tmp\\class.sas7bdat';

data _null_;
    length rc $ 256 ;
    infile CMD length=reclen missover;
    input  rc $varying256. reclen;
    put rc=;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any suggest or error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is correct if i ask to IT Office to enable XCOMMAND to Workspace Server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2016 15:23:56 GMT</pubDate>
    <dc:creator>MC1985</dc:creator>
    <dc:date>2016-07-22T15:23:56Z</dc:date>
    <item>
      <title>Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286363#M19586</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my task is about moving some file from server with SAS Plaftform to my local machine, using SAS Enterprised Guide (Server and Local Machine under Windows Environment), but&amp;nbsp; &lt;U&gt;i don't want to use the upload/dowload task or with the custom task&lt;/U&gt; proposed by Chris Eminger at this &lt;A href="http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/," target="_self"&gt;link&lt;/A&gt; but using a custom task by code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not so pro in technology but i think i can use the PIPE Command and send some command to system and moving file by File Transfert Protocol? can be a good and feasible idea? what type of information i need to do this, like permission, password, test network between server and local machine(how i can do this?) or other? how to do in Windows Environment, because in past i used in UNIX Environment and SAS Base the PIPE and "SCP OS command" from SERVER to SERVER and not in my local machine?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some one can help me or suggest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;have nice day&lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286363#M19586</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-07-22T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286364#M19587</link>
      <description>&lt;P&gt;In most cases, working with EG means that SAS runs on a remote server. Using any external utility from SAS code will therefore necessitate that some kind of transfer &lt;U&gt;server&lt;/U&gt; process runs on your PC, as the SAS code on the server will be using the client for the respective protocol.&lt;/P&gt;
&lt;P&gt;Setting up a FTP or SSH server daemon on your desktop PC may prove to be less than trivial. One of the great handicaps of Windows is its lack of simple utilities (like the server daemons) that are in abundance in the UNIX world.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your reason for not using Chris Hemedinger's custom file transfer task?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286364#M19587</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-22T12:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286413#M19595</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;The reason is that i have not the permission on my local pc to copy the *.dll file of custom task and for policy i can't install any software or other file in system folders...&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So try something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TO START I NEED:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. enable the XCOMMAND&lt;/P&gt;&lt;P&gt;2. SAS SERVER can ping my local machine&lt;/P&gt;&lt;P&gt;3. SAS User from SAS server can copy to my local machine&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;TO DO LIST:&lt;/STRONG&gt;&lt;BR /&gt;1. Understand my local ip with "ipconfig" from CMD on my machine (IPv4 Address)&lt;BR /&gt;2. TEST from SAS EG if SERVER can PING my local machine, for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CMD pipe 'ping XXXXXXXX';
data _null_;
    length rc $ 256 ;
    infile CMD length=reclen missover;
    input  rc $varying256. reclen;
    put rc=;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;3. COPY file from SERVER to MYLOCALMACHINE, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CMD pipe 'copy C:\tmp\class.sas7bdat \\MYLOCALIP\C:\tmp\\class.sas7bdat';

data _null_;
    length rc $ 256 ;
    infile CMD length=reclen missover;
    input  rc $varying256. reclen;
    put rc=;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any suggest or error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is correct if i ask to IT Office to enable XCOMMAND to Workspace Server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286413#M19595</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-07-22T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286551#M19597</link>
      <description>Enabling XCOMMAND is must if you are going to use PIPE or similar method. &lt;BR /&gt;But the whole setup seems awkward. &lt;BR /&gt;Can't you get access to the file on the server instead, or have the SAS session write the file to a file share?&lt;BR /&gt;What is "some file"?</description>
      <pubDate>Sat, 23 Jul 2016 06:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/286551#M19597</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-07-23T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/313769#M21161</link>
      <description>Hi Kurt, i forget to answer. My customer business users didn't have the permission by IT Department to use Chris Hemedinger's custom file transfer task.&lt;BR /&gt;Usually they copy in a manually way file from the remote folder that are mapped on their local pc.&lt;BR /&gt;thank you very much</description>
      <pubDate>Wed, 23 Nov 2016 13:21:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/313769#M21161</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-11-23T13:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/313770#M21162</link>
      <description>&lt;P&gt;i hope that Customer IT Department enabled the XCOMMAND.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"some file" are fromt *.sas7bdat, xlsx, csv, html or csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the users bring in manually way the file from remote desktop by explorer, they had the remote disk mapped in their local machines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tnks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/313770#M21162</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-11-23T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/313843#M21167</link>
      <description>&lt;P&gt;Good news! That custom task isn't "custom" anymore -- in EG 7.13 i&lt;A href="http://blogs.sas.com/content/sasdummy/2016/11/14/copy-files-task-moved-menus/" target="_self"&gt;t's built into the application&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 16:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/313843#M21167</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-11-23T16:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Moving by code file from Server to Local</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/314010#M21185</link>
      <description>thank you very much</description>
      <pubDate>Thu, 24 Nov 2016 09:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Moving-by-code-file-from-Server-to-Local/m-p/314010#M21185</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-11-24T09:05:32Z</dc:date>
    </item>
  </channel>
</rss>

