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
Describe a time when you were really stuck on a problem and how you solved it?
what are sas bi dashboard components? : Sas-bi
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
What are the parameters of scan function?
What are the 3 components in sas programming?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What is the difference between nodupkey and nodup options?
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What is the command used to find missing values?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
what is treatment emergent events and treatment emregent adverse event
how does sas handle missing values in procs? : Sas programming
Describe the function and untility of the most difficult SAS macro that you have written.
how can you create zero observation dataset? : Sas programming
What are the data types in sas?