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
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/