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

1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900

how to read the above data using input statement
consider the above data is in txt format externally
u have to use infile and input statement.

Answer Posted / subbu

data s;
input no 1-2 area $ 3-15 am $ 16-30 ;
amount=input(am,comma15.);
format amount comma15.;
drop am;
cards;
1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900
;
proc print;
run;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define run-group processing?

1043


how would you create multiple observations from a single observation? : Sas programming

1005


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

1090


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2718


What is SAS?

1053


What do the SAS log messages "numeric values have been converted to character" mean?

1381


How to create a permanent sas data set?

1239


What do the put and input function do?

1062


What are the features of base sas system?

1066


Name few SAS functions?

1095


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2757


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

1150


do you prefer proc report or proc tabulate? Why? : Sas programming

984


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

1091


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

1021