<?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: transfer file between client and server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571022#M34120</link>
    <description>&lt;P&gt;The Copy Files task doesn't use SAS code (as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;&amp;nbsp;points out).&amp;nbsp; In general, most tasks&amp;nbsp;&lt;STRONG&gt;do&lt;/STRONG&gt; have SAS code that you can examine/copy, but Copy Files is doing the work via your EG-&amp;gt;SAS connection, using APIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to script this outside of the project, you can &lt;A href="https://blogs.sas.com/content/sasdummy/2013/04/02/using-powershell-to-download-files/" target="_self"&gt;use a tool like PowerShell -- example here&lt;/A&gt;.&amp;nbsp; This uses the same SAS workspace infrastructure that you already have in place.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 16:43:20 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2019-07-03T16:43:20Z</dc:date>
    <item>
      <title>transferring a file between local computer and SAS server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/570999#M34114</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I'm using SAS EG on a client's server environment. I'd like to know if there's a way to upload an Excel file name people.xlsx from my local computer (stored in c:\temp) to my SAS EG environment folder (e.g. /sasdata/users/steve) from within a SAS program itself?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is it possible to directly import the Excel file into SAS from my local computer (c:\temp)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially I'm trying to eliminate the manual step of transferring the excel file to the SAS server before importing the excel data into a SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help insights would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/570999#M34114</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-03T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571013#M34115</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try Tasks --&amp;gt; Data --&amp;gt; Copy Files ...&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571013#M34115</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-07-03T16:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571015#M34116</link>
      <description>&lt;P&gt;Yah, that is the manual step I'm trying to automate.&amp;nbsp; I'm wondering if the commands the Copy Files task uses can be called directly from my SAS program so I can just pass the parameter values in my SAS code.&amp;nbsp; But I can't see the code behind the Task to see how it's transferring the file.&amp;nbsp; Do you think automating this task into a SAS program is possible?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571015#M34116</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-03T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571016#M34117</link>
      <description>No if you don't have SAS in your client machine, in your PC, since the server, who will run the SAS code, has no knowledge of your PC.&lt;BR /&gt;&lt;BR /&gt;But I am sure you can automate with other kind of scripts and tools, such as sftp, or of you have visibility, such as a samba share from your server in your PC.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571016#M34117</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-07-03T16:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571019#M34118</link>
      <description>&lt;P&gt;Is there anyway to see the code behind a Task?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571019#M34118</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-03T16:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571021#M34119</link>
      <description>Not really, as far as I know of.&lt;BR /&gt;However, the task will be a component of your SAS EG project. And a SAS project is a binary file, not a text file as SAS programs are.&lt;BR /&gt;But Projects can be scheduled to run as per your request, if you have such capability in your PC.&lt;BR /&gt;In this way you can automate the uploading of a file of certain files from your PC to the server.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571021#M34119</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-07-03T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571022#M34120</link>
      <description>&lt;P&gt;The Copy Files task doesn't use SAS code (as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;&amp;nbsp;points out).&amp;nbsp; In general, most tasks&amp;nbsp;&lt;STRONG&gt;do&lt;/STRONG&gt; have SAS code that you can examine/copy, but Copy Files is doing the work via your EG-&amp;gt;SAS connection, using APIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to script this outside of the project, you can &lt;A href="https://blogs.sas.com/content/sasdummy/2013/04/02/using-powershell-to-download-files/" target="_self"&gt;use a tool like PowerShell -- example here&lt;/A&gt;.&amp;nbsp; This uses the same SAS workspace infrastructure that you already have in place.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571022#M34120</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-07-03T16:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571382#M34125</link>
      <description>This is really interesting, but I don't see how I can use this to upload a&lt;BR /&gt;.xlsx from c:\temp to my sas eg folder (e.g. /sasdata/users/blxn) from&lt;BR /&gt;within an interactive SAS EG program.&lt;BR /&gt;&lt;BR /&gt;Correct me if I'm wrong, but this looks like it's a script that is executed&lt;BR /&gt;on the local computer side and executes SAS code on the server side from&lt;BR /&gt;which the output file is save also to the local computer.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jul 2019 13:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571382#M34125</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-05T13:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571385#M34126</link>
      <description>&lt;P&gt;Your responses are confusing. You were suggested to use a feature of EG that would let you upload a file.&amp;nbsp; You didn't want to use that for some reason. Then when suggested how to upload without EG you reject it because it is not part of EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What was wrong with using the COPY FILES feature of EG?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 13:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571385#M34126</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-05T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571387#M34127</link>
      <description>&lt;P&gt;If you goal is to capture this completely within your SAS program, then your SAS session needs to have access to your local machine - through a mapped drive, network share, or similar mechanism.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the days of SAS/CONNECT where you have SAS locally&amp;nbsp;&lt;STRONG&gt;and&amp;nbsp;&lt;/STRONG&gt;SAS on a remote machine, you could use PROC UPLOAD for this.&amp;nbsp; But without SAS locally, you have to rely on client techniques to upload files to your SAS session.&amp;nbsp; EG has a built-in method, or you can script it from outside of EG.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 13:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571387#M34127</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-07-05T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571393#M34128</link>
      <description>&lt;P&gt;Yup, that is my goal.&amp;nbsp; The&amp;nbsp;reason I thought this might be possible is because I can manually save and open excel files from within SAS EG.&amp;nbsp; For instance, in SAS EG from the Output tab of my dataset named TMP.&amp;nbsp; I can click Export =&amp;gt; Export TMP... then double-click My Network Places =&amp;gt; \\client =&amp;gt; c$ =&amp;gt; temp.&amp;nbsp; Then change the Save As file type to *.xlsx" and click the Save button.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it seems there is some type of mapping in place, but I guess I just don't know how to use it within my SAS EG code to first move the .xlsx file to my SAS server folder before I use Proc Import to read in the file contents.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 13:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571393#M34128</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-05T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571394#M34129</link>
      <description>&lt;P&gt;I believe that the Import / Export tasks in EG are interactive. A person needs to be there when they run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I think the Copy Files task is not.&amp;nbsp; You tell it what file to copy and it always copies that file when it runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the problem that the filename changes?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571394#M34129</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-05T14:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571396#M34130</link>
      <description>&lt;P&gt;Sorry if I'm confusing.&amp;nbsp; No disrespect intended.&amp;nbsp; Maybe I can't assume all SAS EG environments are not like mine.&amp;nbsp; I first connect to a Citrix desktop on our client's server and then launch SAS EG from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to circumvent the Copy Files task because it's a manual step outside of running my SAS program that uses Proc Import to read in the .xlsx file from my SAS EG folder.&amp;nbsp; I was just hoping there was a way to mimic what the task does using some SAS or SAS EG functionality so that I don't have to perform the manual steps of running the Copy Files task.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571396#M34130</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-05T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571400#M34131</link>
      <description>&lt;P&gt;When I run the Copy Files task (&lt;SPAN&gt;Tasks --&amp;gt; Data --&amp;gt; Copy Files ...)&lt;/SPAN&gt; it prompts me for information like file transfer direction, paths, filenames, etc... by popping up a window.&amp;nbsp; So an alternative would be to be able to call the Copy Files task and pass these types of parameters in from my SAS program rather than by manually clicking thru a series of SAS EG menus and hand entering the values in the pop-up window.&amp;nbsp; Is this method possible?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571400#M34131</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-05T14:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571410#M34133</link>
      <description>I think that is the disconnect. When you use EG it is in charge, not the SAS process.  So EG can send code to SAS to run but SAS cannot send code to EG to run. The puppet cannot control the puppeteer.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571410#M34133</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-05T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: transfer file between client and server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571417#M34134</link>
      <description>&lt;P&gt;But you&amp;nbsp;&lt;STRONG&gt;can&lt;/STRONG&gt; use macro variables and wildcards to control this, and use a task template to more-or-less automate the process.&amp;nbsp; It's not 100% SAS code, but it can be done with a minimum of prompting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" target="_self"&gt;I have a Download example/approach here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571417#M34134</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-07-05T14:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: transferring a file between local computer and SAS server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571419#M34135</link>
      <description>&lt;P&gt;Thanks everyone for the responses and pointers.&amp;nbsp; I appreciate you taking the time to help me clarify the SAS EG file transfer capabilities.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 15:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/transferring-a-file-between-local-computer-and-SAS-server/m-p/571419#M34135</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2019-07-05T15:00:54Z</dc:date>
    </item>
  </channel>
</rss>

