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
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro
What is the difference between the proc sql and data step?
Briefly explain input and put function?
Can you execute a macro within a macro? Describe. : sas-macro
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
What is program data vector (pdv)?
Enlist the functions performed by sas.
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
Mention how to limit decimal places for the variable using proc means?
List out some key concept of SAS
What is the difference between input and infile statement?
What is the difference between one to one merge and match merge? Give an example.
name the scheduler for scheduling job and explain the scheduler? : Sas-di
Mention what are the data types does SAS contain?
How to specify variables to be processed by the freq procedure?