What SAS statements would you code to read an external raw
data file to a DATA step?

Answers were Sorted based on User's Feedback



What SAS statements would you code to read an external raw data file to a DATA step?..

Answer / madhu

infile and input statements.
ex:
data m;
infile 'c:\m.txt';
input :xxxx;
run;

Is This Answer Correct ?    9 Yes 0 No

What SAS statements would you code to read an external raw data file to a DATA step?..

Answer / sankar

use INFLE statement

data dsname;
infile 'path of file' <options>;
input var1 var2................varn;
run;

options like dsd dlm missover firstobs obs ..etc

Is This Answer Correct ?    5 Yes 0 No

What SAS statements would you code to read an external raw data file to a DATA step?..

Answer / ram

proc import is utilities procedure...so infile is correct

Is This Answer Correct ?    4 Yes 0 No

What SAS statements would you code to read an external raw data file to a DATA step?..

Answer / pramod

Using import wizard in file menu also we read an external
raw data file to a data step

Is This Answer Correct ?    3 Yes 1 No

What SAS statements would you code to read an external raw data file to a DATA step?..

Answer / sastechies

We use SAS statements –

FILENAME – to specify the location of the file

INFILE - Identifies an external file to read with an INPUT
statement

INPUT – to specify the variables that the data is
identified with.

Read more: http://sastechies.blogspot.com/2009/11/sas-
interview-questions.html

Is This Answer Correct ?    2 Yes 0 No

What SAS statements would you code to read an external raw data file to a DATA step?..

Answer / sankar

using proc import procedure

synatax :for text file

proc import datafile='path' out=datasetname
dbms=dlm;
delimiter='specific delimiter';
run;

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SAS Interview Questions

There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?

5 Answers  


Compare sas with other data analytics tools.

0 Answers  


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

0 Answers  


what is _error_?

2 Answers   Axis Bank, Cognizant, JPMorgan Chase,


how to import HTML files into SAS datasets?

3 Answers   HP,






what is snowflake schema? : Sas-di

0 Answers  


what is the difference between proc report and proc format?

7 Answers   CTS,


name several ways to achieve efficiency in your program? : Sas programming

0 Answers  


Are you familiar with special input delimiters? How are they used?

4 Answers   Accenture,


what versions of sas have you used (on which platforms)? : Sas programming

0 Answers  


Why do we use QUIT commmand for proc datasets and proc sql ???

3 Answers  


Name statements that are execution only.

14 Answers   Accenture,


Categories