<?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: Multiple files that start with same name using Proc DOWNLOAD in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67281#M19239</link>
    <description>Consider this info on PROC DOWNLOAD SELECT statement, directly from the SAS DOC:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/a000365273.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/a000365273.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Google advanced search argument, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
proc download select statement site:sas.com</description>
    <pubDate>Thu, 11 Mar 2010 18:09:48 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-03-11T18:09:48Z</dc:date>
    <item>
      <title>Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67280#M19238</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to write the PROC DOWNLOAD statement where you can download multiple files from a directory on the server and you don't need to fully qualify the name of the file(s) to be downloaded?&lt;BR /&gt;
&lt;BR /&gt;
Example:&lt;BR /&gt;
&lt;BR /&gt;
rsubmit;&lt;BR /&gt;
    libname rhost '/cpspb/home/hunte022';&lt;BR /&gt;
&lt;BR /&gt;
    proc download inlib=rhost &lt;BR /&gt;
         outlib=lhost;&lt;BR /&gt;
		 select capi* cati* / memtype=data;&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
   /* %sysrput download_rc=&amp;amp;sysinfo; */&lt;BR /&gt;
&lt;BR /&gt;
   /* check if download successful */&lt;BR /&gt;
   %if &amp;amp;sysinfo=0 %then&lt;BR /&gt;
      %put ** -- DOWNLOAD COMPLETED SUCCESSFULLY!;&lt;BR /&gt;
   %else %put ERROR: DOWNLOAD failed, File is not available.;&lt;BR /&gt;
&lt;BR /&gt;
 endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
I want to download every file that starts with capi* and cati* from the UNIX machine to a directory on my local machine.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any advise here.&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
      <pubDate>Thu, 11 Mar 2010 17:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67280#M19238</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-03-11T17:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67281#M19239</link>
      <description>Consider this info on PROC DOWNLOAD SELECT statement, directly from the SAS DOC:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/a000365273.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/a000365273.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Google advanced search argument, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
proc download select statement site:sas.com</description>
      <pubDate>Thu, 11 Mar 2010 18:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67281#M19239</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-11T18:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67282#M19240</link>
      <description>Thanks Scott,&lt;BR /&gt;
&lt;BR /&gt;
That was just what I needed!  &lt;BR /&gt;
&lt;BR /&gt;
New SAS code:&lt;BR /&gt;
&lt;BR /&gt;
rsubmit;&lt;BR /&gt;
    libname rhost '/cpspb/home/hunter';&lt;BR /&gt;
&lt;BR /&gt;
    proc download inlib=rhost &lt;BR /&gt;
         outlib=lhost;&lt;BR /&gt;
		 select capi: cati: / memtype=data;&lt;BR /&gt;
    run;&lt;BR /&gt;
&lt;BR /&gt;
   /* %sysrput download_rc=&amp;amp;sysinfo; */&lt;BR /&gt;
&lt;BR /&gt;
   /* check if download successful */&lt;BR /&gt;
   %if &amp;amp;sysinfo=0 %then&lt;BR /&gt;
      %put ** -- DOWNLOAD COMPLETED SUCCESSFULLY!;&lt;BR /&gt;
   %else %put ERROR: DOWNLOAD failed, File is not available.;&lt;BR /&gt;
&lt;BR /&gt;
 endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
      <pubDate>Thu, 11 Mar 2010 18:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67282#M19240</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-03-11T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67283#M19241</link>
      <description>You will want to check SAS support website HOTFIX maintenance, specific to PROC DOWNLOAD.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
+"proc download" +error +hotfix site:sas.com</description>
      <pubDate>Thu, 11 Mar 2010 18:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67283#M19241</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-11T18:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67284#M19242</link>
      <description>Scott,&lt;BR /&gt;
&lt;BR /&gt;
So are you saying there could be a possible problem when downloading multiple files thru one PROC DOWNLOAD statement?&lt;BR /&gt;
&lt;BR /&gt;
Is this fixed in SAS 9.2?&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
      <pubDate>Thu, 11 Mar 2010 19:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67284#M19242</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-03-11T19:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67285#M19243</link>
      <description>No, not specifically.  I am suggesting you (or your SAS admin) will want to keep up with HOTFIX maintenance.  And if you see any particular items or SAS support notes with a related HOTFIX, then pursue it if you need to.&lt;BR /&gt;
&lt;BR /&gt;
Or, maybe this concern is not warranted and your SAS admin diligently keeps up with SAS maintenance - that's for you to assess.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 11 Mar 2010 19:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67285#M19243</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-11T19:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files that start with same name using Proc DOWNLOAD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67286#M19244</link>
      <description>OK, thanks.  I think they keep us up to date.  Well, kind of - I once had to tell them of a hot fix that was needed, because of an error I was getting.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks for the info.  I will check out the site.&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
      <pubDate>Thu, 11 Mar 2010 19:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Multiple-files-that-start-with-same-name-using-Proc-DOWNLOAD/m-p/67286#M19244</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-03-11T19:42:52Z</dc:date>
    </item>
  </channel>
</rss>

