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

data temp;
infile datalines ;
input sno city & $12.
pop : comma.;
datalines;
1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900
;

The ampersand (&) modifier is used to read character values
that contain embedded blanks.
The colon (:) modifier is used to read nonstandard data
values and character values that are longer than eight
characters, but which contain no embedded blanks.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can call macros with in data step? : sas-macro

1176


What are the differences between sum function and using “+” operator?

1158


What are the features of SAS?

1077


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

2428


What is PROC in SAS?

1102


what is factor analysis? : Sas-administrator

1145


How will you generate test data with no input data?

1232


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

1394


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

1848


How long can a macro variable be? A token? : sas-macro

1264


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

1085


What are all the problems you faced while validating tables and reports?

3511


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

1199


Why and when do you use proc sql?

1286


What is SAS informats?

1164