How to get any kind of data in SAS? Is it possible to take
data from notepad in SAS?
Answer Posted / naveen
Data sample_accounts;
INPUT Account 1-7 OpenDate $ 9-17 StatusCode $ 21-22
CreditLimit 25-29;
CARDS;
1234670 11-Sep-04 Z 2000
1234671 12-Sep-04 3000
1234672 13-Sep-04 Z 2500
1234673 14-Sep-04 T 3200
1234674 15-Sep-04 8000
run;
filename myfile "C:\Mydata\sample_accounts.txt";
data qqq;
infile myfile dlm=' ';
input Account OpenDate $ StatusCode $ CreditLimit;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the use of proc gplot? : sas-grid-administration
how many display types available in sas bi dashboard? : Sas-bi
Explain the difference between nodup and nodupkey options?
Give some ways by which you can define the variables to produce the summary report (using proc report)?
Differentiate between sas functions and sas procedures.
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
What are the data types that sas contain?
how are numeric and character missing values represented internally? : Sas programming
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
Explain how merging helps to combine data sets.
What is the basic syntax style in SAS?
How do you use the do loop if you don’t know how many times you should execute the do loop?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
How to include or exclude specific variables in a data set?
Explain the difference between informat and format with an example.