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

explain the proc in sas? : Sas-administrator

629


In sas, what are the areas that you are most interested in? : sas-grid-administration

644


how does sas handle missing values in sort order? : Sas programming

537


Describe crosslist option in tables statement?

715


What is the difference between reading data from an external file and reading data from an existing data set?

641






Differentiate between sas functions and sas procedures.

648


How does the internal authentication work in sas? : sas-grid-administration

587


what is the basic structure sas administrator? : Sas-administrator

567


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

595


How do you delete duplicate observations in sas?

581


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

1920


how to change the execute of macro

1684


is data integration and etl programming is same? : Sas-di

578


how to generate the test data in sas without input data? : Sas-administrator

583


What is the difference between %local and %global? : sas-macro

673