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

what other sas products have you used and consider yourself proficient in using? : Sas programming

1107


What are the 3 components in sas programming?

1190


explain about sas business intelligence? : Sas-bi

1135


what is data governance? : Sas-di

1015


Describe the function and utility of the most difficult SAS macro that you have written?

2556


how many types of prompts are there? : Sas-bi

1072


What are pdv and it functions?

1133


Differences between where and if statement?

1080


what do you mean by data staging area? : Sas-di

1132


Briefly explain input and put function?

1078


What are the implications?

1701


What are the features of base sas system?

1062


what is slowly changing dimension? : Sas-di

1117


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1166


What is the order of application for output data set options, input data set options and SAS statements?

1550