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

How you can read the variables that you need?

1102


name several ways to achieve efficiency in your program? : Sas programming

1018


What is the purpose of trailing @ and @@? How do you use them?

1011


what is broad cast agent? : Sas-bi

1037


How can you create a macro variable with in data step? : sas-macro

1015


How to specify variables to be processed by the freq procedure?

1055


what are all the reports you generated in your recent project?

2171


for what purpose would you use the retain statement? : Sas programming

1051


what is study design in while working with SAS? what are screening variables in SAS?

2207


Intern stastical programmer written test

705


what is sas database server? : Sas-di

1089


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

1097


what are sas bi dashboard components? : Sas-bi

1135


explain what is data set in sas? : Sas-administrator

947


Mention the difference between ceil and floor functions in sas?

1126