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 / mohan reddy
INFILE AND INPUT STATEMENTS
EX;
DATA EMP;
INFILE 'E:\ABC\EMPLOYEE.TXT' MISSOVER;
INPUT VAR1 VAR 2....VARN;
RUN;
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / god
using infile and input statements must it is possible to
clean and get the data into in u r environment....
some body says using proc import using proc import it is not
possible to clean and get the data in u r
environment..................it will take as it is
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / name is no need
we can import the an external file in three ways to a sas
data set
1.libname libref<location of the sas data set library>;
filname fileref<path of the raw data file>;
data <data set name>;
infile <fileref>;
input <variable declarations>;
run;
2.proc import
3.by using the proc import option in the sas wizard of file
menu option.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / g.jyotshna
whenever the data in .txt .dat format we can directly us
infile and input statements.
but incase of .xls
it is not possible to read excel data file directly through
infile input.
we have to use:
wizard
DDE(dynamic data exchange)
proc import (its best one)
(in projects we go for proc import only)
after reading into sas session we will go for cleaning.
| Is This Answer Correct ? | 5 Yes | 4 No |
Can we replace a dataset into view?
What does the RUN statement do?
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
How would you identify a macro variable? : sas-macro
What is the difference between Regression and Logistic Regression? Can u explain the Assumptions/Conditions?
Of all your work, where have you been the most successful?
For clinical entire study how many tables will create approx?
I have 50 variables in one data set, In reports i want to generate every 10 variables in one page how we will write code in proc report.
What makes sas stand out to be the best over other data analytics tools?
Explain what is SAS informats?
which date function advances a date, time or datetime value by a given interval? : Sas programming
how can you import .csv file in to sas? : Sas programming