<?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: FILENAME with Multiple Options in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618486#M181458</link>
    <description>&lt;P&gt;Thanks, but suppose that the zip file is now on the Internet as follows.&lt;/P&gt;&lt;PRE&gt;https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_Factors_CSV.zip&lt;/PRE&gt;&lt;P&gt;Can I feed one member of this url as the FILENAME?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 09:19:00 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-01-20T09:19:00Z</dc:date>
    <item>
      <title>FILENAME with Multiple Options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/617946#M181169</link>
      <description>&lt;P&gt;FILENAME has optional arguments such as TEMP, ZIP, URL, etc. Can one use two or more arguments simultaneously? For example, can FILENAME refer a zip file on the Internet as follows?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myfile zip url "http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_Factors_TXT.zip";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or can FILENAME be a temporary zip file? Probably not as &lt;A href="https://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n06xm17q99z0x6n1tskpswfrgp27.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;the SAS document&lt;/A&gt; says ZIP must be a ufs file and it seems TEMP is not.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myfile temp zip;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried several arguments simultaneously but didn't work. Thanks for help.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 22:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/617946#M181169</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-01-16T22:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME with Multiple Options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618243#M181339</link>
      <description>&lt;P&gt;You can specify one file within the zip, if that is what you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename foo ZIP 'U:\directory1\testzip.zip' member="test1.txt" ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Example 1 in&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 08:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618243#M181339</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2020-01-18T08:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME with Multiple Options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618486#M181458</link>
      <description>&lt;P&gt;Thanks, but suppose that the zip file is now on the Internet as follows.&lt;/P&gt;&lt;PRE&gt;https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_Factors_CSV.zip&lt;/PRE&gt;&lt;P&gt;Can I feed one member of this url as the FILENAME?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 09:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618486#M181458</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-01-20T09:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME with Multiple Options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618609#M181498</link>
      <description>&lt;P&gt;You cannot ask SAS to run two different filename engines in the same filename.&lt;/P&gt;
&lt;P&gt;Copy the file to your local machine.&amp;nbsp; Then you can use the ZIP engine to extract something from the file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename webfile url
 'https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/F-F_Research_Data_Factors_CSV.zip'
  recfm=f lrecl=512
;
filename middle temp   recfm=f lrecl=512;
data _null_;
  rc=fcopy('webfile','middle');
  if rc then do;
    length msg $ 384;
    msg=sysmsg();
    put rc= msg=;
  end;
run;
filename text zip "%sysfunc(pathname(middle))" member='*' ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can read the text out of the zip file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  infile text truncover firstobs=5 dsd ;
  input var1-var5 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2020 17:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-with-Multiple-Options/m-p/618609#M181498</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-20T17:10:26Z</dc:date>
    </item>
  </channel>
</rss>

