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

how to debug and test the sas program? : Sas-administrator

1037


what does the run statement do? : Sas programming

1056


What versions of SAS have you used (on which platforms)?

1515


How are numeric and character missing values represented internally?

1659


what is ae onset date n what is RDS

2579


explain what is factor analysis? : Sas-administrator

1112


Mention how to limit decimal places for the variable using proc means?

1117


If you could design your ideal job, what would it look like?

2931


Which function is used to count the number of intervals between two sas dates?

1129


What do you know about sas and what we do? : sas-grid-administration

1146


what is enterprise guide? What is the use of it? : Sas programming

1021


Give e an example of..

2100


what is the purpose of _error_? : Sas programming

1136


What function CATX syntax does?

1219


What does P-value signify about the statistical data?

1364