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

Add a colon modifier before the informat (commaw.) and increase the informat width, like the following.

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

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the function and untility of the most difficult SAS macro that you have written.

2280


For what purpose would you use the RETAIN statement?

1587


Name and describe few sas character functions that are used for data cleaning in brief.

1185


where to use sas business intelligence? : Sas-bi

1168


Give e an example of..

2139


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2178


What are the different operating system platforms in which we can use sas? : sas-grid-administration

1128


what are some differences between proc summary and proc means? : Sas programming

1197


Do you need to rearrange the order of the data for the report?

2363


which date function advances a date, time or datetime value by a given interval? : Sas programming

1097


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1848


Explain what Proc glm does?

1303


In SAS explain which statement does not perform automatic conversions in comparisons?

1374


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

1193


What is the basic structure of the SAS base program?

1408