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

Answer:

data cityrank;
input rank 1-2 @3 city $13. @16 amoutnt comma15.;
datalines;
1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900
;
run;

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you code to create a macro? : sas-macro

1150


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2420


What are the five ways to do a table lookup in sas? : sas-grid-administration

1067


Are you involved in writing the inferential analysis plan? Tables specfications?

2230


Define run-group processing?

1047


What are the prime responsibilities of data integration administrator? : Sas-di

1077


List down the reasons for choosing sas over other data analytics tools.

1292


Give some examples where proc report’s defaults are same as proc print’s defaults?

1117


what are validation tools that are used in sas? : Sas-administrator

1066


what is function of retain statment

2044


Mention what are the data types does SAS contain?

1157


Difference between nodup and nodupkey options?

1201


Mention the validation tools used in SAS?

1189


Do you know the features of sas?

1049


What is the difference between the proc sql and data step?

1187