How to import the Zip files into SAS? If it is possible in
SAS? If it is posible write the code...

Answer Posted / sanjay

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;

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is PROC in SAS?

605


What is slibref?

748


what are informats in sas? : Sas-administrator

591


what do you mean by data staging area? : Sas-di

607


What are the table names in oracle database...?

2254






what is data integration? : Sas-di

620


What is the function of Stop statement in a SAS Program?

650


What is the difference between class statement and by statement in proc means?

663


What is substr function?

626


Given an unsorted data set, how to read the last observation to a new data set?

843


what is metadata? : Sas-bi

603


For what purposes have you used sas macros? : sas-macro

540


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

602


how would you determine the number of missing or nonmissing values in computations? : Sas programming

661


What is the use of PROC gplot?

642