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

what is the purpose of _error_? : Sas programming

608


how does sas handle missing values in assignment statements? : Sas programming

567


Have you used macros? For what purpose you have used? : sas-macro

557


What is a method to debug and test your SAS program?

715


what are the categories that sas informats are used to the place the data? : Sas-administrator

611






Enlist the functions performed by sas.

674


How would you identify a macro variable? : sas-macro

530


what is the function of catx syntax? : Sas-administrator

643


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1161


what techniques and/or procs do you use for tables? : Sas programming

573


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

551


What are the scrubbing procedures in sas?

571


how can you import .csv file in to sas? : Sas programming

636


Difference between sum function and using “+” operator?

600


Give e an example of..

1650