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
What versions of SAS have you used (on which platforms)?
explain about data integrator metadata reports? : Sas-di
What is the difference between one to one merge and match merge? Give an example.
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
Briefly explain input and put function?
Explain data_null_?
what do the pad and dim functions do? : Sas programming
What are the special input delimiters used in SAS?
what is the difference between floor and ceil functions in sas? : Sas-administrator
how do you debug and test your sas programs? : Sas programming
What are SAS/ACCESS and SAS/CONNECT?
What is the order of application for output data set options, input data set options and SAS statements?
Do you need to rearrange the order of the data for the report?
how to do user inputs and command line arguments in sas?
Why double trailing @@ is used in input statement?