<?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: What is the fastest way to download sas data to local desktop? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340681#M77901</link>
    <description>Good explanation. Will bear in mind.</description>
    <pubDate>Tue, 14 Mar 2017 07:38:43 GMT</pubDate>
    <dc:creator>afiqcjohari</dc:creator>
    <dc:date>2017-03-14T07:38:43Z</dc:date>
    <item>
      <title>What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340635#M77876</link>
      <description>&lt;P&gt;I have this routine whereby I need to analyze data from the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I find that doing the analysis locally is much more pleasant than using the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the best way to download the a sas data to a local folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*connection to server;
rsubmit;
 proc sql;
   create table tolocal as 
   select * from servertable
   where &amp;lt;conditions&amp;gt;
 ;quit;
endrsubmit;
* tolocal is now in Rwork;

*define local folder on desktop;
libname mylocal "C:\Users\Working folder";

*download data to mylocal;
data mylocal.tolocal; set rwork.tolocal;run;&lt;/PRE&gt;&lt;P&gt;Is it possible to do everything within rsubmit?&lt;/P&gt;&lt;P&gt;It seems that I can't define the local folder within rsubmit..&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 03:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340635#M77876</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-14T03:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340636#M77877</link>
      <description>&lt;P&gt;It depends. Sometimes the desktop and server have different modules licensed. For example we had SAS IML on desktops but not server... not sure why. Most things should be able to run on the server and should be faster since they're typically much faster machines. &amp;nbsp;Sometimes network speed can mess that up though. It does require a small shift in how you work but once you figure it out it's significantly faster.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No you can't define a local folder on the server, you need to give it a location the server has access to, somewhere on the server or a shared drive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 04:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340636#M77877</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-14T04:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340638#M77879</link>
      <description>I concur about the different modules. Though for this exercise, I've no need to worry about it... Yet.&lt;BR /&gt;&lt;BR /&gt;Anyways, is proc download a better alternative to data;set;run?</description>
      <pubDate>Tue, 14 Mar 2017 04:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340638#M77879</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-14T04:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340639#M77880</link>
      <description>&lt;P&gt;Yes, because data steps read each line and proc download or even proc copy can move the data in blocks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A datastep could create new variables or change the dataset somehow. If none of this is occurring a different method is more efficient.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 04:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340639#M77880</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-14T04:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340673#M77893</link>
      <description>&lt;P&gt;Since you have both PC SAS and server SAS you could download your SAS data using PROC DOWNLOAD which has the smarts to know about your local LIBNAMEs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;

proc download data = tolocal
              out = mylocal.tolocal;
run;

endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Mar 2017 06:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340673#M77893</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-03-14T06:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340680#M77900</link>
      <description>Thanks for the PROC DOWNLOAD tips.&lt;BR /&gt;Save me a bunch of time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 14 Mar 2017 07:38:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340680#M77900</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-14T07:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340681#M77901</link>
      <description>Good explanation. Will bear in mind.</description>
      <pubDate>Tue, 14 Mar 2017 07:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340681#M77901</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-14T07:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340786#M77945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on SAS/CONNECT&amp;nbsp;non licensed Windows machines, one could use robocopy to perform the task.&lt;/P&gt;&lt;P&gt;Robocopy has the big advantage that it creates the output folder by its own and can also copy subdirectory files without further specifying them.&lt;/P&gt;&lt;P&gt;Consult robocopy /? in the command line for more details.&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="Courier New"&gt;libname inLib "C:\TEMP\input Lib Folder";
libname outLib "C:\TEMP\output Lib Folder";
x "robocopy ""%sysfunc(pathname(inLib))"" ""%sysfunc(pathname(outLib))"" *.sas7bdat *.png /MIR";
/*
   interesting parameters:
   /PURGE
   /XF
   /XD
   /LOG:
*/&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would advise to use the compress option on SAS datasets whenever possible if you intend to regularly transfer a big amount of files over your network.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340786#M77945</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2017-03-14T14:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340857#M77954</link>
      <description>I always zip on the server and I like to use &lt;BR /&gt;Bruno Mueller's   (binary copy with a large chunksize (ie32k)</description>
      <pubDate>Tue, 14 Mar 2017 16:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/340857#M77954</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-03-14T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to download sas data to local desktop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/341024#M77978</link>
      <description>I'm transferring file from the server to my local desktop. I don't think I can automate using robocopy as I need to open the cmd line.</description>
      <pubDate>Wed, 15 Mar 2017 01:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-fastest-way-to-download-sas-data-to-local-desktop/m-p/341024#M77978</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-15T01:26:56Z</dc:date>
    </item>
  </channel>
</rss>

