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 / 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


Please Help Members By Posting Answers For Below Questions

Explain the use of proc gplot? : sas-grid-administration

933


how many display types available in sas bi dashboard? : Sas-bi

1034


Explain the difference between nodup and nodupkey options?

968


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1035


Differentiate between sas functions and sas procedures.

1148


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

1005


What are the data types that sas contain?

1120


how are numeric and character missing values represented internally? : Sas programming

1089


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1554


Explain how merging helps to combine data sets.

995


What is the basic syntax style in SAS?

1096


How do you use the do loop if you don’t know how many times you should execute the do loop?

1215


how would you determine the number of missing or nonmissing values in computations? : Sas programming

1095


How to include or exclude specific variables in a data set?

1064


Explain the difference between informat and format with an example.

1114