Date: Tue, 6 Mar 2001 16:45:25 -0500
Reply-To: "David L. Ward" <dward@INTERNEXT-INC.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Ward" <dward@INTERNEXT-INC.COM>
Subject: Re: Zipped text files
Content-Type: text/plain; charset="iso-8859-1"
>All,
Can anyone tell me if I can create SAS data sets from zipped text files
without having to unzip the files themselves?
I'm using SASv6.12 on windows NT
WinZip, the most popular zip program for windows, has a command line add-on
(not beta anymore) available at winzip.com, click on downloads. You can
search SAS-L for detailed posts on using pkunzip to unzip files dynamically
into SAS datasets, but here's the basic idea:
filename cmd pipe "wzunzip command to unzip a file from an archive to
STDOUT";
data whatever;
infile cmd (firstobs=n); * you may need firstobs if wzunzip puts header
lines first *;
* read data here *;
run;
HTH,
David Ward
------------------------------------
President
InterNext, Inc.
Software for the Internet Generation
------------------------------------
|