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 other sas products have you used and consider yourself proficient in using? : Sas programming
What are the 3 components in sas programming?
explain about sas business intelligence? : Sas-bi
what is data governance? : Sas-di
Describe the function and utility of the most difficult SAS macro that you have written?
how many types of prompts are there? : Sas-bi
What are pdv and it functions?
Differences between where and if statement?
what do you mean by data staging area? : Sas-di
Briefly explain input and put function?
What are the implications?
What are the features of base sas system?
what is slowly changing dimension? : Sas-di
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
What is the order of application for output data set options, input data set options and SAS statements?