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
what are informats in sas? : Sas-administrator
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
What is the sas data set? : sas-grid-administration
Explain the difference between informat and format with an example.
Which command is used to save logs in the external file?
Mention what are the data types does SAS contain?
what is sas and what are the functions? : Sas-administrator
What are the ways in which macro variables can be created in sas programming?
Explain how merging helps to combine data sets.
How do dates work in SAS data?
What function CATX syntax does?
Are you involved in writing the inferential analysis plan? Tables specifications?
what are the categories that sas informats are used to the place the data? : Sas-administrator
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