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

Answers were Sorted based on User's Feedback



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

Answer / sushil nayak

Yes, reading a ZIP file in Windows SAS is possible. Use the Winzip Command Line Support Add-on and a FILENAME statement to read zipped files into a SAS data set.

Check out this link :: Sample 26011: Reading zipped files on Windows :: http://support.sas.com/kb/26/011.html#

Is This Answer Correct ?    10 Yes 1 No

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

Answer / vinod kumar

We can read the zipped files in to SAS by using the SASZIPAM
option.

filename file1 saszipam 'd:\Myfiles\dumps.zip';

data dset;
infile file1(dumps1.csv) dlm=','; *-dumps1.csv is one of
the file in zipped file;
input email $ name $ address $ city $ zip $;
put _infile_;
run;

Is This Answer Correct ?    4 Yes 2 No

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

Answer / paul

to read zip files SAS has special keyword i.e., SASZIPAM
eg:
FILENAME myzipfile SASZIPAM 'd:\filelocation\6100Txn.zip';
data _null_;
infile myzipfile(sales_JAN);
input;
put _infile_;
run;
/*here iam extracting sales_JAN file from 6100Txn.zip file
since we don't know the file structure put everything to log.
to see the file names in zip, physically access the zip file
without extracting the file contents. */

Is This Answer Correct ?    3 Yes 2 No

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

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

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

Answer / jatin

No

Is This Answer Correct ?    5 Yes 7 No

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

Answer / no no no noooo

PROC IMPORT OUT= WORK.ALL
DATAFILE= "C:\Users\1234Documents\SENTHIL\dmp3split.zip"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;

Is This Answer Correct ?    4 Yes 6 No

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

Answer / sekhar

by csv(cama seperate value) command

Is This Answer Correct ?    2 Yes 17 No

Post New Answer

More SAS Interview Questions

Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

0 Answers  


data jagan1.s; input bp$; cards; 100/90 120/89 112/87 run; in the above code how to convert character data values to numeric data values?

3 Answers  


How will you generate test data with no input data?

0 Answers  


What is the difference between nodup and nodupkey options?

20 Answers   iFlex, Makro, Talwar,


Which statement does not perform automatic conversions in comparisons?

0 Answers  






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

0 Answers  


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

0 Answers  


how do you derive descriptive statistics?

1 Answers   Accenture, Quintiles,


What are the features of SAS?

0 Answers  


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

7 Answers  


How would you invoke a macro? : sas-macro

0 Answers  


Explain the purpose of substr functions in sas programming.

0 Answers  


Categories