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

data cityrank;

input rank @3 city $ 13. amount : comma15.;
datalines;
1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900

;
run;
proc print data=cityrank;
run;

this is the ans only for this example new york has more than
single blank so problem arise hire.if not & modifier can be
used.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For what purpose would you use the RETAIN statement?

1492


what is change analysis in sas di ? : Sas-di

1028


Mention the difference between ceil and floor functions in sas?

1126


how do you debug and test your sas programs? : Sas programming

1101


Of all your work, where have you been the most successful?

4649


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

2054


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2351


For clinical entire study how many tables will create approx?

1939


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

1144


What are SAS/ACCESS and SAS/CONNECT?

1114


what is sas and what are the functions? : Sas-administrator

953


what is intially documentation in sas?

5002


Define run-group processing?

1008


How do you control the number of observations and/or variables read or written?

1220


Which are the statements whose placement in the data step is critical?

1224