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

why is sas data integration studio important? : Sas-di

1089


How do you debug and test your SAS programs?

1610


What is by-group processing?

1058


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

1122


Give an example where SAS fails to convert character value to numeric value automatically?

1135


Explain the purpose of substr functions in sas programming.

1113


Mention the difference between ceil and floor functions in sas?

1216


Differences between where and if statement?

1158


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

1169


What do you know about sas and what we do? : sas-grid-administration

1240


Which function is used to count the number of intervals between two sas dates?

1200


What is the maximum and minimum length of macro variable

1344


what is transformation in sas data integration? : Sas-di

1091


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

1296


What are the default statistics for means procedure?

1299