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
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
What are the prime responsibilities of data integration administrator? : Sas-di
How do you control the number of observations and/or variables read or written?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
Tell e how how dealt with..
how could you generate test data with no input data? : Sas programming
how can you create zero observation dataset? : Sas programming
Describe a time when you were really stuck on a problem and how you solved it?
Can you execute a macro within a macro? Describe. : sas-macro
Approximately what date is represented by the SAS date value of 730?
Mention what is SAS data set?
What is SAS? What are the functions does it performs?
what is information maps?
What are pdv and it functions?
what is sas application server? : Sas-di