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

data poo;
infile 'D:\poo.txt ';
input rank country $ 12. salary ;
INFORMAT SALARY COMMA10.;
FORMAT SALARY COMMA10.;
run;

proc print;
run;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of stop statement?

1040


how many types of prompts are there? : Sas-bi

1060


What is the difference between INPUT and INFILE ?

1282


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

2207


what are several options for creating reports in web report studio? : Sas-bi

1112


What is your favorite all time computer book? Why?

2477


What is the good sas programming practices for processing large data sets?

1090


Explain proc sort?

1055


What is the use of divide function?

1032


What does PROC print, and PROC contents do?

1201


what is sas enterprise intelligence architecture? : Sas-bi

953


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

1088


What is PROC in SAS?

1028


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1651


Mention how to limit decimal places for the variable using proc means?

1093