How to get any kind of data in SAS? Is it possible to take
data from notepad in SAS?
Answer Posted / sas29
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;
method1
--------------------------
Data sample_accounts;
INFILE "C:\Mydata\sample_accounts.txt";
INPUT Account 1-7 OpenDate $ 9-17 StatusCode $ 21-22
CreditLimit 25-29;
RUN;
method 2
-----------------------------------
filename sacc "D:\Mydata\sample_accounts.txt";
Data sample_accounts;
INFILE sacc ;
INPUT Account 1-7 OpenDate $ 9-17 StatusCode $ 21-22
CreditLimit 25-29;
RUN;
method 3;
use proc import:
method 4:
use proc cimport for xpt files into sas
| Is This Answer Correct ? | 28 Yes | 0 No |
Post New Answer View All Answers
what is slowly changing dimension? : Sas-di
How can you limit the variables written to output dataset in data step?
what is sas metadata server? : Sas-di
How many ways to overcome a missing values???
In SAS explain which statement does not perform automatic conversions in comparisons?
What is the purpose of _character_ and _numeric_?
What is run-group processing?
What are the implications?
how does sas handle missing values in assignment statements? : Sas programming
Which are the statements whose placement in the data step is critical?
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
What is the maximum length of the macro variable?
I need level 2 to 5 sas using companies in india
how will you locate the sas platform applications? : Sas-bi
What is the difference between order and group variable in proc report?