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 ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the sas data set? : sas-grid-administration

949


What is the use of divide function?

1032


What are the different versions of sas that you have used until now? : sas-grid-administration

1316


what is the Population you used in your project, is it ITT or PP?

2716


Tell me more about the parameters in macro? : sas-macro

1030


What are the different types of sas functions?

1231


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1889


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1033


which features do you use to check the data validations and errors? : Sas-administrator

1027


What’s the difference between var b1 – b3 and var b1 — b3?

1315


what are the categories that sas informats are used to the place the data? : Sas-administrator

1016


What are pdv and it functions?

1084


What are the difference between sas functions and procedures?

1101


Describe what are the different levels of administrative users in sas? : sas-grid-administration

1004


What are the features of base sas system?

1046