<?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: Proc Download in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74433#M21597</link>
    <description>Thanks Scott and Gaurav!  When I spelled out the outfile location, it worked.&lt;BR /&gt;
&lt;BR /&gt;
rsubmit; &lt;BR /&gt;
OPTIONS MSTORED SASMSTORE=HOME; &lt;BR /&gt;
&lt;BR /&gt;
filename fref '/p02/data/penv/hgsa/intrnet'; &lt;BR /&gt;
&lt;BR /&gt;
proc download infile=fref('trend_12_graph.sas') &lt;BR /&gt;
&lt;B&gt;outfile='z:\test.sas';&lt;/B&gt; &lt;BR /&gt;
run; &lt;BR /&gt;
endrsubmit;</description>
    <pubDate>Wed, 18 Feb 2009 16:13:38 GMT</pubDate>
    <dc:creator>Chip</dc:creator>
    <dc:date>2009-02-18T16:13:38Z</dc:date>
    <item>
      <title>Proc Download</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74429#M21593</link>
      <description>There was a time when I was able to move SAS programs between our network drive and unix by using a FTP process.  I'm pretty sure that way of moving programs has been eliminated by my company.  I'm attempting to find a new way and was wondering if I could use proc download/upload.  I'm getting an error trying to download.  This is my code...&lt;BR /&gt;
&lt;BR /&gt;
%signon(unix);                                     &lt;BR /&gt;
                                                   &lt;BR /&gt;
rsubmit;                                           &lt;BR /&gt;
OPTIONS MSTORED SASMSTORE=HOME;                    &lt;BR /&gt;
                                                   &lt;BR /&gt;
   filename locref 'z:\';                          &lt;BR /&gt;
   filename fref '/p02/data/penv/hgsa/intrnet';    &lt;BR /&gt;
                                                   &lt;BR /&gt;
   proc download infile=fref('trend_12_graph.sas') &lt;BR /&gt;
                 outfile=locref;                   &lt;BR /&gt;
   run;                                            &lt;BR /&gt;
endrsubmit;          &lt;BR /&gt;
                              &lt;BR /&gt;
This is my error...&lt;BR /&gt;
ERROR: Invalid file, z:\.&lt;BR /&gt;
&lt;BR /&gt;
I've tried a bunch of different file locations for locref but it always comes back as an invalid file.  Any help is much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 17 Feb 2009 20:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74429#M21593</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2009-02-17T20:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Download</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74430#M21594</link>
      <description>Are you attempting to move SAS source code programs or a SAS compiled macro catalog.  The FILENAME statement expects a specific file, not a folder/directory; a LIBNAME statement points to a folder/directory.  Also consider the issue with moving catalogs / objects between disparate operating environments.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 18 Feb 2009 03:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74430#M21594</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-18T03:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Download</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74431#M21595</link>
      <description>You may try using the following pseudo code to move your programs onto the local machine from the remote server.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;filename locref 'c:\';&lt;BR /&gt;
rsubmit;&lt;BR /&gt;
   filename fref '/local/programs';&lt;BR /&gt;
   proc download infile=fref('*.sas') &lt;BR /&gt;
                 outfile=locref;&lt;BR /&gt;
   run;&lt;BR /&gt;
endrsubmit;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This code would copy all the codes residing on the UNIX server under the directory &lt;B&gt;'/local/programs'&lt;/B&gt;</description>
      <pubDate>Wed, 18 Feb 2009 12:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74431#M21595</guid>
      <dc:creator>Gaurav</dc:creator>
      <dc:date>2009-02-18T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Download</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74432#M21596</link>
      <description>Thanks Scott and Gaurav!  When I spelled out the outfile location, it worked.&lt;BR /&gt;
&lt;BR /&gt;
rsubmit; &lt;BR /&gt;
OPTIONS MSTORED SASMSTORE=HOME; &lt;BR /&gt;
&lt;BR /&gt;
filename fref '/p02/data/penv/hgsa/intrnet'; &lt;BR /&gt;
&lt;BR /&gt;
proc download infile=fref('trend_12_graph.sas') &lt;BR /&gt;
&lt;B&gt;outfile='z:\test.sas';&lt;/B&gt; &lt;BR /&gt;
run; &lt;BR /&gt;
endrsubmit;</description>
      <pubDate>Wed, 18 Feb 2009 16:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74432#M21596</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2009-02-18T16:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Download</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74433#M21597</link>
      <description>Thanks Scott and Gaurav!  When I spelled out the outfile location, it worked.&lt;BR /&gt;
&lt;BR /&gt;
rsubmit; &lt;BR /&gt;
OPTIONS MSTORED SASMSTORE=HOME; &lt;BR /&gt;
&lt;BR /&gt;
filename fref '/p02/data/penv/hgsa/intrnet'; &lt;BR /&gt;
&lt;BR /&gt;
proc download infile=fref('trend_12_graph.sas') &lt;BR /&gt;
&lt;B&gt;outfile='z:\test.sas';&lt;/B&gt; &lt;BR /&gt;
run; &lt;BR /&gt;
endrsubmit;</description>
      <pubDate>Wed, 18 Feb 2009 16:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74433#M21597</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2009-02-18T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Download</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74434#M21598</link>
      <description>Thanks Scott and Gaurav!  When I spelled out the outfile location, it worked.&lt;BR /&gt;
&lt;BR /&gt;
rsubmit; &lt;BR /&gt;
OPTIONS MSTORED SASMSTORE=HOME; &lt;BR /&gt;
&lt;BR /&gt;
filename fref '/p02/data/penv/hgsa/intrnet'; &lt;BR /&gt;
&lt;BR /&gt;
proc download infile=fref('trend_12_graph.sas') &lt;BR /&gt;
&lt;B&gt;outfile='z:\test.sas';&lt;/B&gt; &lt;BR /&gt;
run; &lt;BR /&gt;
endrsubmit;</description>
      <pubDate>Wed, 18 Feb 2009 16:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Download/m-p/74434#M21598</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2009-02-18T16:14:10Z</dc:date>
    </item>
  </channel>
</rss>

