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
how does sas handle missing values in functions? : Sas programming
what is operational data and operational system? : Sas-di
How we can create SAS USER DEFINED CODE?
Enlist the syntax rules followed in sas statements.
what is sas data set?
How to sort in descending order?
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
Can you execute macro within another macro? : sas-macro
What are the ways in which macro variables can be created in sas programming?
Enlist the functions performed by sas.
What is PROC in SAS?
Explain what is the use of proc gplot?
What is proc sort?
how does sas handle missing values in formats? : Sas programming
What are the difference between the sas data step and sas procs?