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 (September 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 26 Sep 2006 06:47:52 +0200
Reply-To:     LouisBB <nospam@HCCNET.NL>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         LouisBB <nospam@HCCNET.NL>
Subject:      Re: Unzip a file
Comments: To: sas-l@uga.edu

Dear Kiran,

Is this example from http://support.sas.com/ctx/samples/index.jsp?sid=1584&tab=code what you are looking for?

LouisBB.

/******************************************************/ /* The syntax parameters for wzunzip are: */ /* */ /* specify the location of the downloaded add-on */ /* -o = overwrite existing file */ /* -c = display contents of file to screen */ /* name of zip file */ /* name of file inside of zip to be read */ /* */ /* Note the contents of the zipped file are read */ /* directly, no extraction is performed. */ /******************************************************/

filename foo pipe '"c:\program files\winzip\wzunzip.exe" -o -c c:\sample01584_1_data.zip testfile.txt';

/* The zip file, sample01584_1_data.zip, is flat file created */ /* from PROC Export and SASHELP.CLASS. */

data test; /* Use FIRSTOBS= to skip the first 8 records related to zip */ /* information, and the 9th record which contains a header */ /* record of variable names from SASHELP.CLASS. */ infile foo firstobs=10 truncover dsd; input name :$9. sex :$1. age height weight; run;

proc print; run;

"Kiran Nallapeta" <k_nallapeta@HOTMAIL.COM> wrote in message news:BAY7-F23E031625D66559833A1A995250@phx.gbl... > Hi everyone, > > Is there a way we can unzip a flat file in SAS directly (without using > operating system commands with X function). I want to read a flat file > after > unzipping it. > > Thanking you and Best Regards, > Kiran > > _________________________________________________________________ > Spice up your IM conversations. New, colorful and animated emoticons. Get > chatting! http://server1.msn.co.in/SP05/emoticons/


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