<?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 directly export data to local using only a script? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510088#M72971</link>
    <description>If you use SAS BASE instead of EG this is possible.</description>
    <pubDate>Fri, 02 Nov 2018 21:45:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-02T21:45:49Z</dc:date>
    <item>
      <title>How to directly export data to local using only a script?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510085#M72969</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to have a program to run on SAS EG 7.1 that can take data from our team's remote SAS server and download it directly onto my local machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to use this little program that I found in a related post;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data = sashelp.class

outfile = 'c:\dokus\class.txt'

dbms = dlm replace;

delimiter = '09'x;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create the \dokus\class.txt document in my C drive and run the program on SAS EG, I get the following error in my log;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, c:\dokus\class.txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read all of the answers to the related post; &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122&lt;/A&gt;, but I still don't know what to do.&lt;/P&gt;&lt;P&gt;I don't really know how to tell the SAS server to look into my local C drive since there is no connection between the SAS server and my local C drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just as a little side note; using the copy files task feature, saving onto a shared folder, etc., or anything similar are really not options. Everything needs to be in a compact little piece of code that I can just run on the EG to do the entire exportation at once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;coco&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 21:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510085#M72969</guid>
      <dc:creator>3r</dc:creator>
      <dc:date>2018-11-02T21:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to directly export data to local using only a script?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510087#M72970</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244209"&gt;@3r&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I want to have a program to run on SAS EG 7.1 that can take data from our team's remote SAS server and download it directly onto my local machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to use this little program that I found in a related post;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data = sashelp.class

outfile = 'c:\dokus\class.txt'

dbms = dlm replace;

delimiter = '09'x;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I create the \dokus\class.txt document in my C drive and run the program on SAS EG, I get the following error in my log;&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, c:\dokus\class.txt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've read all of the answers to the related post; &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122&lt;/A&gt;, but I still don't know what to do.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;I don't really know how to tell the SAS server to look into my local C drive since there is no connection between the SAS server and my local C drive.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And just as a little side note; using the copy files task feature, saving onto a shared folder, etc., or anything similar are really not options. Everything needs to be in a compact little piece of code that I can just run on the EG to do the entire exportation at once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;coco&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If there's no connection to your drive or a common drive (network drive) then this isn't possible. I believe this is a feature since it locks data down to the server and exports are traceable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use a Task or a shared folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 21:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510087#M72970</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-02T21:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to directly export data to local using only a script?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510088#M72971</link>
      <description>If you use SAS BASE instead of EG this is possible.</description>
      <pubDate>Fri, 02 Nov 2018 21:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-directly-export-data-to-local-using-only-a-script/m-p/510088#M72971</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-02T21:45:49Z</dc:date>
    </item>
  </channel>
</rss>

