LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: richard Simhon <Richard.Simhon@CORNHILL.CO.UK>
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 ------------------------------------


Back to: Top of message | Previous page | Main SAS-L page