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

how to change the execute of macro

2386


What are the features of SAS?

1084


What is the use of the %include statement?

1217


For what purpose would you use the RETAIN statement?

1587


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

1179


How do you debug and test your SAS programs?

1610


How to create list output for cross-tabulations in proc freq?

1154


for report generation which one you used proc report or data_null_?

7947


What is the difference between using drop = data set option in data statement and set statement?

1214


What is the SAS data set?

1180


what is snowflake schema? : Sas-di

1263


What are the features of base sas system?

1114


Explain the special input delimiters used in sas programming.

1051


how do you test for missing values? : Sas programming

1102


Explain by-group processing?

1039