<?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: Importing Files from .zip in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70881#M20419</link>
    <description>What was that "x" command (having just a path/directory as an argument) supposed to do?</description>
    <pubDate>Sun, 20 Feb 2011 07:44:24 GMT</pubDate>
    <dc:creator>Robert_Bardos</dc:creator>
    <dc:date>2011-02-20T07:44:24Z</dc:date>
    <item>
      <title>Importing Files from .zip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70878#M20416</link>
      <description>Hello there, &lt;BR /&gt;
&lt;BR /&gt;
I was wondering if it was possible to import .dat files from inside a .zip folder. &lt;BR /&gt;
&lt;BR /&gt;
The only way I've been able to manage the import is by copy and pasting these files out of the zip folder. &lt;BR /&gt;
&lt;BR /&gt;
I've been using an infile statement to import... &lt;BR /&gt;
&lt;BR /&gt;
Data work.dat;&lt;BR /&gt;
 		&lt;BR /&gt;
Infile &lt;BR /&gt;
'\\int\Updates\folder\SPEC.dat' LRECL = 452 Firstobs = 2;&lt;BR /&gt;
&lt;BR /&gt;
Input&lt;BR /&gt;
...;			&lt;BR /&gt;
Keep ....;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks Guys!</description>
      <pubDate>Wed, 09 Feb 2011 23:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70878#M20416</guid>
      <dc:creator>SamT</dc:creator>
      <dc:date>2011-02-09T23:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Files from .zip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70879#M20417</link>
      <description>From the SAS support website, here is an SGF conference paper on the topic of reading compressed files:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/155-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/155-31.pdf&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
read zip files site:sas.com</description>
      <pubDate>Thu, 10 Feb 2011 04:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70879#M20417</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-02-10T04:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Files from .zip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70880#M20418</link>
      <description>Had a read of that Scott and I can't work out how to use it or change it to what I need...&lt;BR /&gt;
&lt;BR /&gt;
(extract)&lt;BR /&gt;
"...let’s put all you need in the same directory: the SAS programs we are&lt;BR /&gt;
going to test, the uncompressed text files, the archives (compressed files) and the tools 7za.exe and gzip.exe...."&lt;BR /&gt;
&lt;BR /&gt;
I think if I asked for the IT guys here at work if I could do that their heads would explode.&lt;BR /&gt;
&lt;BR /&gt;
This is what I've been trying to run and getting an ERROR: Insufficient authorization to access c:\windows\system32\11022011.zip. The thing I don't fully understand is where in my script am I asking for it to look in that directory. &lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
Options nodate noxwait;&lt;BR /&gt;
%Let MyDir = \\int\Collaborate\PI\Portfoli\FTP Transfer;&lt;BR /&gt;
x "&amp;amp;MyDir";&lt;BR /&gt;
FileName FTPTRANS Saszipam "11022011.zip";&lt;BR /&gt;
&lt;BR /&gt;
Data Rwork.GIOSPEC (index = (Nvic));&lt;BR /&gt;
Infile FTPTRANS (GIOSPEC.dat)&lt;BR /&gt;
LRECL = 452 Firstobs = 2;&lt;BR /&gt;
%Let _EFIERR_ = 0;            &lt;BR /&gt;
Input .... &lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help mate.&lt;BR /&gt;
&lt;BR /&gt;
Sam</description>
      <pubDate>Tue, 15 Feb 2011 00:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70880#M20418</guid>
      <dc:creator>SamT</dc:creator>
      <dc:date>2011-02-15T00:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Files from .zip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70881#M20419</link>
      <description>What was that "x" command (having just a path/directory as an argument) supposed to do?</description>
      <pubDate>Sun, 20 Feb 2011 07:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-Files-from-zip/m-p/70881#M20419</guid>
      <dc:creator>Robert_Bardos</dc:creator>
      <dc:date>2011-02-20T07:44:24Z</dc:date>
    </item>
  </channel>
</rss>

