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

data cityrank;
infile 'D:\miths data\Mithelesh\cityrank.txt' ;
input rank city & $12. amoutnt comma10.;
run;
proc print data=cityrank;
run;

problem with amount varible
tell what to do?

Is This Answer Correct ?    3 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions which are used for character handling functions?

1097


Explain the difference between nodup and nodupkey options?

1000


What do you understand by the term Normal Distribution?

955


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4551


How will you generate test data with no input data?

1139


How do you add a number to a macro variable? : sas-macro

977


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

1060


what are the considerations when picking a SAS/STAT procedure?

3344


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

1048


What is the use of function Proc summary?

1252


How many data types are there in SAS?

1044


What are the difference between the sas data step and sas procs?

1142


Describe 5 ways to do a “table lookup” in SAS?

1119


What is the difference between class statement and by statement in proc means?

1237


Have you ever used the SAS Debugger?

1722