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
Answer / madhu
infile and input statements.
ex:
data m;
infile 'c:\m.txt';
input :xxxx;
run;
| Is This Answer Correct ? | 9 Yes | 0 No |
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 |
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 |
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 |
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 |
is there any differnce between proc means and proc summary?
how to import XTP files into SAS datasets?
1 Answers Barclays, Institute For Plasma Research,
if x=round(26.3,10)-1 then x= how much and how explain?
What are the differences between proc means and proc summary?
what are the advantages of using SAS in clinical data mangement? why should not we use other software products in managing clinical data?
I have a dataset with variables empid and doj how to calculate retirement age?
I am looking to buy a sas advance book. So any one can guide me that which one i should buy.
how can get the first and last observations in a dataset using Proc SQl?
What is a pdv and what are its functions?
how to delete the duplicates by using proc sql?
What's the difference between VAR A1 - A4 and VAR A1 - A4?
What is the role of administrative users? : sas-grid-administration