Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is slowly changing dimension? : Sas-di

1117


How can you limit the variables written to output dataset in data step?

1313


what is sas metadata server? : Sas-di

1100


How many ways to overcome a missing values???

2806


In SAS explain which statement does not perform automatic conversions in comparisons?

1310


What is the purpose of _character_ and _numeric_?

1056


What is run-group processing?

1151


What are the implications?

1701


how does sas handle missing values in assignment statements? : Sas programming

1017


Which are the statements whose placement in the data step is critical?

1253


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

1014


What is the maximum length of the macro variable?

1175


I need level 2 to 5 sas using companies in india

2380


how will you locate the sas platform applications? : Sas-bi

1025


What is the difference between order and group variable in proc report?

1428